Replies: 4 comments 1 reply
-
Did you install the MAUI workload on the bot? Judging by the missing target frameworks, my guess is that it isn't, so restore wouldn't work. |
Beta Was this translation helpful? Give feedback.
-
@drasticactions Have you looked into this yet ? |
Beta Was this translation helpful? Give feedback.
-
@samhouts @drasticactions I dont know why you moved here this issue and now no one even bothering to respond on this. |
Beta Was this translation helpful? Give feedback.
-
I faced the same issue ,and needs urgent solution how did you solved ? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Description
MAUI Build is failing on Azure Devops with latest MAUI workload
Azure Devops Task Logs
2023-08-14T14:52:15.3231439Z ##[section]Starting: Restore Nugets
2023-08-14T14:52:15.3387602Z ==============================================================================
2023-08-14T14:52:15.3387773Z Task : NuGet
2023-08-14T14:52:15.3387843Z Description : Restore, pack, or push NuGet packages, or run a NuGet command. Supports NuGet.org and authenticated feeds like Azure Artifacts and MyGet. Uses NuGet.exe and works with .NET Framework apps. For .NET Core and .NET Standard apps, use the .NET Core task.
2023-08-14T14:52:15.3388141Z Version : 2.222.0
2023-08-14T14:52:15.3388226Z Author : Microsoft Corporation
2023-08-14T14:52:15.3388308Z Help : https://docs.microsoft.com/azure/devops/pipelines/tasks/package/nuget
2023-08-14T14:52:15.3388637Z ==============================================================================
2023-08-14T14:52:16.3838778Z [command]C:\Windows\system32\chcp.com 65001
2023-08-14T14:52:16.3984490Z Active code page: 65001
2023-08-14T14:52:16.4126050Z Detected NuGet version 6.6.1.2 / 6.6.1+f4f3bb12a1ccbb974bca9b115a7b7291a7d6fb39.f4f3bb12a1ccbb974bca9b115a7b7291a7d6fb39
2023-08-14T14:52:16.4183644Z [command]C:\hostedtoolcache\windows\NuGet\6.6.1\x64\nuget.exe restore "D:\a\1\s\src\client\Insight Client.sln" -Verbosity Detailed -NonInteractive -ConfigFile D:\a\1\s\src\client\nuget.config
2023-08-14T14:52:27.7717687Z C:\hostedtoolcache\windows\dotnet\sdk\7.0.400\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.TargetFrameworkInference.targets(113,5): error NETSDK1139: The target platform identifier ios was not recognized. [D:\a\1\s\src\client\IRISNDT.Insight.Client.App\IRISNDT.Insight.Client.App.csproj::TargetFramework=net7.0-ios]
2023-08-14T14:52:27.7718229Z NuGet Version: 6.6.1.2
2023-08-14T14:52:27.7718736Z
2023-08-14T14:52:27.7719321Z MSBuild auto-detection: using msbuild version '17.6.3.22601' from 'C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Current\bin'. Use option -MSBuildVersion to force nuget to use a specific version of MSBuild.
2023-08-14T14:52:27.7720037Z MSBuild P2P timeout [ms]: 120000
2023-08-14T14:52:27.7720950Z C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Current\bin\msbuild.exe "C:\Users\VssAdministrator\AppData\Local\Temp\NuGetScratch\oa2smmko.fhb.nugetinputs.targets" /t:GenerateRestoreGraphFile /nologo /nr:false /v:q /p:NuGetRestoreTargets="C:\Users\VssAdministrator\AppData\Local\Temp\NuGetScratch\4els52hg.gdn.nugetrestore.targets" /p:RestoreUseCustomAfterTargets="True" /p:DisableCheckingDuplicateNuGetItems="True" /p:RestoreTaskAssemblyFile="C:\hostedtoolcache\windows\NuGet\6.6.1\x64\nuget.exe" /p:RestoreSolutionDirectory="D:\a\1\s\src\client\" /p:RestoreConfigFile="D:\a\1\s\src\client\nuget.config" /p:SolutionDir="D:\a\1\s\src\client\" /p:SolutionName="Insight Client"
2023-08-14T14:52:27.7722346Z NuGet.CommandLine.ExitCodeException: Exception of type 'NuGet.CommandLine.ExitCodeException' was thrown.
2023-08-14T14:52:27.7722744Z at NuGet.CommandLine.MsBuildUtility.d__6.MoveNext()
2023-08-14T14:52:27.7723240Z --- End of stack trace from previous location where exception was thrown ---
2023-08-14T14:52:27.7723583Z at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
2023-08-14T14:52:27.7723968Z at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
2023-08-14T14:52:27.7724358Z at NuGet.CommandLine.RestoreCommand.d__68.MoveNext()
2023-08-14T14:52:27.7724993Z --- End of stack trace from previous location where exception was thrown ---
2023-08-14T14:52:27.7725378Z at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
2023-08-14T14:52:27.7725770Z at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
2023-08-14T14:52:27.7726203Z at NuGet.CommandLine.RestoreCommand.d__63.MoveNext()
2023-08-14T14:52:27.8208360Z ##[error]The nuget command failed with exit code(1) and error(C:\hostedtoolcache\windows\dotnet\sdk\7.0.400\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.TargetFrameworkInference.targets(113,5): error NETSDK1139: The target platform identifier ios was not recognized. [D:\a\1\s\src\client\IRISNDT.Insight.Client.App\IRISNDT.Insight.Client.App.csproj::TargetFramework=net7.0-ios])
2023-08-14T14:52:27.8211682Z ##[error]Packages failed to restore
2023-08-14T14:52:27.8214203Z ##[section]Finishing: Restore Nugets
Steps to Reproduce
Build the Maui client apps with Azure Deops
Link to public reproduction project repository
No response
Version with bug
7.0.92
Is this a regression from previous behavior?
Yes, this used to work in .NET MAUI
Last version that worked well
Unknown/Other
Affected platforms
Windows
Affected platform versions
No response
Did you find any workaround?
No response
Relevant log output
No response
Beta Was this translation helpful? Give feedback.
All reactions