使用Visual Studio 17.8.3包在Azure DevOps发布.NET MAUI iOS应用失败
升级.NET MAUI到.NET 8后Azure DevOps发布失败问题
之前我的应用基于ASP.NET 7、目标iOS 16.1(支持框架15.4),使用Visual Studio Enterprise 2022 17.5.3包可在Azure DevOps正常发布。现升级为目标iOS 17(支持框架16.1)、使用17.8.3包后,发布任务失败。
发布前出现的警告
/Users/runner/work/1/s/ViewModels/MainViewModel.cs(108,28): warning CS0108: 'MainViewModel.OnPropertyChanged(string)' hides inherited member 'ObservableObject.OnPropertyChanged(string?)'. Use the new keyword if hiding was intended. [/Users/runner/work/1/s/MyAppName.csproj::TargetFramework=net8.0-ios17.0]
发布失败错误信息
##[error]Error: The process '/Users/runner/hostedtoolcache/dotnet/dotnet' failed with exit code 1 ##[warning].NET 5 has some compatibility issues with older Nuget versions(<=5.7), so if you are using an older Nuget version(and not dotnet cli) to restore, then the dotnet cli commands (e.g. dotnet build) which rely on such restored packages might fail. To mitigate such error, you can either: (1) - Use dotnet cli to restore, (2) - Use Nuget version 5.8 to restore, (3) - Use global.json using an older sdk version(<=3) to build Info: Azure Pipelines hosted agents have been updated and now contain .Net 5.x SDK/Runtime along with the older .Net Core version which are currently lts. Unless you have locked down a SDK version for your project(s), 5.x SDK might be picked up which might have breaking behavior as compared to previous versions. You can learn more about the breaking changes and troubleshooting methods through official documentation. ##[error]Dotnet command failed with non-zero exit code on the following projects : [ '/Users/runner/work/1/s/MyAppName.sln' ] Finishing: dotnet publish (Debug)
请问是否有其他人成功解决此问题?
内容的提问来源于stack exchange,提问作者Dumber_Texan2
相关产品推荐
相关产品推荐

