[ci] Build and pack updates, bump to .NET 5.0.201 #5773
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I've been encountering various issues when building and packing .NET 6
content with
dotnet build
.Using an older version of
dotnet
with<Exec/>
tasks that invoke anewer version of
dotnet
seems to be problematic:The same scenario fails even earlier if the nested project build also
targets a newer .NET SDK version:
We do not need to build any of our .NET 6 content with .NET 6. All of
our .NET 6 sources and dependencies can be built and packed with a
target framework of
netstandard2.0
ornet5.0
. To fix these issuesand simplify things, our .NET 6 build and packaging targets have been
updated to use the system
dotnet
. This version has been bumped to.NET 5.0.201 in CI.
A new make rule
create-nupkgs
has been added to reduce the number ofplaces where we were previously calling msbuild /t:CreateAllPacks in
yaml. The
create-installers
rule now depends on this new rule.The Windows Dotnet Build and Smoke Test job has been updated to run
tests against the netcoreapp3.1 version of Xamarin.Android.Build.Tests.
A duplicate solution build has also been removed, as the
PackDotNet
target will build the entire Xamarin.Android.sln.
A duplicate file reference for
Java.Interop.Tools.Generator.dll
hasbeen removed from the Microsoft.Android.Sdk packs.