-
Notifications
You must be signed in to change notification settings - Fork 58
[build] target net6.0 instead of netcoreapp3.1 #829
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
4a5e671
to
55b2eb5
Compare
f8d3840
to
a4faf0f
Compare
Context: dotnet/android#5891 Context: dotnet/android@e59f649 xamarin-android should imminently be building libraries targeting `net6.0` instead of `netcoreapp3.1`. We should be able to do this now, because Mono 6.12.0.137 supports building both .NET 5.0 and .NET 6.0.
This is green! dotnet/android#5895 |
This also seems to add several new NRT-related warnings to the build, but they can be fixed later in a separate PR. |
NOTE: in xamarin-android, this project gets built by xabuild in Xamarin.Android-Tests.sln | ||
Exclude net6.0, because xabuild cannot build net5.0 or higher | ||
--> | ||
<PropertyGroup Condition=" '$(XABuild)' == 'true' "> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What sets $(XABuild)
? I don't see any "obvious" references within xamarin-android:
% git grep '\<XABuild\>'
tools/xabuild/XABuild.cs: class XABuild
Is this via some MSBuild magic?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is magic, this XML file we generate presets MSBuild properties:
So I made any xabuild
invocation set this property by default.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Context: https://github.com/xamarin/xamarin-android/pull/5891
Context: https://github.com/xamarin/xamarin-android/commit/e59f6493fedd789cbd3157d369104516cfffd3f0
xamarin/xamarin-android should imminently be building libraries
targeting `net6.0` instead of `netcoreapp3.1`.
We should be able to do this now, because Mono 6.12.0.137 supports
building both .NET 5.0 and .NET 6.0.
Update all appropriate `$(TargetFrameworks)` values so that `net6.0`
is used instead of `netcoreapp3.1`.
Update `global.json` so that a Prerelease .NET 6 SDK is used, and use
`boots` to install the preview version of Mono which supports
targeting `net6.0`. |
Context: dotnet/android#5891
Context: dotnet/android@e59f649
xamarin-android should imminently be building libraries targeting
net6.0
instead ofnetcoreapp3.1
.We should be able to do this now, because Mono 6.12.0.137 supports building both .NET 5.0 and .NET 6.0.