-
Notifications
You must be signed in to change notification settings - Fork 266
Description
RestoreNetCore_WithCustomAliases_WritesConditionWithCorrectAlias started failing on CI with the below error message.
C:\Program Files\dotnet\sdk\5.0.201\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.TargetFrameworkInference.targets(109,5): error NETSDK1139: The target platform identifier android was not recognized.
[C:\a\5\s.test\work\138cbb27\22e1160c\solution\proj\proj.csproj]\r\n\n\nNuGet Version: 5.10.0.7339\r\nRestoring NuGet packages for solution C:\a\5\s.test\work\138cbb27\22e1160c\solution\solution.sln.\r\nMSBuild auto-detection: using msbuild version '16.9.0.11203' from 'C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\bin'. Use option -MSBuildVersion to force nuget to use a specific version of MSBuild.\r\nMSBuild P2P timeout [ms]: 120000\r\nC:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\bin\msbuild.exe "C:\Users\AzDevOps\AppData\Local\Temp\1\NuGetScratch\rvk3acx2.lwl.nugetinputs.targets" /t:GenerateRestoreGraphFile /nologo /nr:false /v:q /p:NuGetRestoreTargets="C:\Users\AzDevOps\AppData\Local\Temp\1\NuGetScratch\vc4lc0od.kv2.nugetrestore.targets" /p:RestoreUseCustomAfterTargets="True" /p:RestoreTaskAssemblyFile="C:\a\5\s\test\NuGet.Clients.Tests\NuGet.CommandLine.Test\bin\release\net472\NuGet\NuGet.exe" /p:RestoreSolutionDirectory="C:\a\5\s.test\work\138cbb27\22e1160c\solution\" /p:SolutionDir="C:\a\5\s.test\work\138cbb27\22e1160c\solution\" /p:SolutionName="solution"\r\nNuGet.CommandLine.ExitCodeException: Exception of type 'NuGet.CommandLine.ExitCodeException' was thrown.\r\n at NuGet.CommandLine.MsBuildUtility.d__6.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at NuGet.CommandLine.RestoreCommand.d__68.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at NuGet.CommandLine.RestoreCommand.d__63.MoveNext()\r\n\r\nExpected: True\r\nActual: False
As per #10195 (comment) comment it looks like net5.0-windows is the only supported platform specific TFM in net5.0.
Similar issue fixed here - dotnet/android#5007