You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jul 13, 2026. It is now read-only.
Repository navigation
Commit 9f56dec
Browse filesBrowse the repository at this point in the historyBrowse files
I believe this is a good idea anyway, but this should assist with:
dotnet/android#7451
Which is hitting the error:
error NU1102: Unable to find package Microsoft.NETCore.App.Host.osx-x64 with version (= 3.1.31)
.NET Core 3.1.31 is not released yet and is likely on a private feed.
Also pass `6.0.x` to the [`UseDotNet`][0] yaml task.
After these changes, the build failed with:
error MSB3971: The reference assemblies for ".NETFramework,Version=v6.0" were not found. You might be using an older .NET SDK to target .NET 5.0 or higher. Update Visual Studio and/or your .NET SDK.
Mono MSBuild probably can't build .NET 6 projects?
So I fixed various things in the build:
* Use `dotnet build` instead of MSBuild, remove NuGet commands
* No tests were running:
[warning] Project file(s) matching the specified pattern were not found.
* Fixed the `$(XATBuildingForNetCoreApp)` property, so tests run.
* Upload artifacts based on the pool name: `$(vmImage)`
* Use `$(PackageOutputPath)` instead of `$(OutputPath)`
* `PublishBuildArtifacts` is deprecated use `PublishPipelineArtifact`
* Save `.binlog` files as artifacts
[0]: https://learn.microsoft.com/azure/devops/pipelines/tasks/tool/dotnet-core-tool-installer
0 commit comments