-
Notifications
You must be signed in to change notification settings - Fork 549
Description
@gkarabin commented on Thu, 16 Oct 2025 18:28:28 GMT
NuGet Product Used
dotnet.exe
Product Version
9.0.306
Worked before?
The version of dotnet provided by Visual Studio 2022 17.14.13
Impact
I'm unable to use this version without a workaround (which then exposes new problems).
Repro Steps & Context
With any .NET MAUI project targeting .net8.0-ios, including the one created by the dotnet template, I receive errors on any nuget operation.
The simplest reproduction is:
dotnet new maui -f net8.0
dotnet restore
What I expected:
A completed restore
What I got:
C:\Program Files\dotnet\sdk\9.0.306\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.EolTargetFrameworks.targets(38,5): error NETSDK1202: The workload 'net8.0-ios' is out of support and will not receive security updates in the future. Please refer to https://aka.ms/maui-support-policy for more information about the support policy.
C:\Program Files\dotnet\sdk\9.0.306\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.EolTargetFrameworks.targets(38,5): error NETSDK1202: The workload 'net8.0-maccatalyst' is out of support and will not receive security updates in the future. Please refer to https://aka.ms/maui-support-policy for more information about the support policy.
Restore complete (0.5s)
Build failed with 2 error(s) in 0.6s
https://learn.microsoft.com/en-us/dotnet/core/tools/sdk-errors/netsdk1202 indicates that this should be a warning, not an error. Setting CheckEolWorkloads to false has no impact on the behavior.
<CheckEolWorkloads>false</CheckEolWorkloads>
permits the restore to succeed.
When not setting CheckEolWorkloads to false, the binlog appears to show that this should be a warning, not an error:
I know that net8.0 is out of support from a security point of view, but we still need to be able to build old configurations of apps while updating them, supporting customers who need hot fixes on them, etc. I can work around this, but then it exposes new problems. I don't know if it's related to the new problems or not - will file another ticket.
Verbose Logs
dotnet restore --verbosity diag
C:\Program Files\dotnet\sdk\9.0.306\MSBuild.dll -nologo -distributedlogger:Microsoft.DotNet.Tools.MSBuild.MSBuildLogger,C:\Program Files\dotnet\sdk\9.0.306\dotnet.dll*Microsoft.DotNet.Tools.MSBuild.MSBuildForwardingLogger,C:\Program Files\dotnet\sdk\9.0.306\dotnet.dll -maxcpucount -target:Restore -tlp:default=auto -verbosity:m -verbosity:diag .\dotnet9036test.csproj
C:\Program Files\dotnet\sdk\9.0.306\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.EolTargetFrameworks.targets(38,5): error NETSDK1202: The workload 'net8.0-ios' is out of support and will not receive security updates in the future. Please refer to https://aka.ms/maui-support-policy for more information about the support policy.
C:\Program Files\dotnet\sdk\9.0.306\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.EolTargetFrameworks.targets(38,5): error NETSDK1202: The workload 'net8.0-maccatalyst' is out of support and will not receive security updates in the future. Please refer to https://aka.ms/maui-support-policy for more information about the support policy.
Restore complete (0.4s)
Determining projects to restore...
All projects are up-to-date for restore.
Build failed with 2 error(s) in 0.6s