Open voroninp opened 3 months ago
Verified this issue with Visual Studio 17.10.0 Preview 2 (8.0.14). Can repro it.
@ninachen03 Yes, I tried both VS and VS preview.
I just wanted to add that when I disable and trimming, so project file contains:
<PublishTrimmed>False</PublishTrimmed>
<PublishAot>False</PublishAot>
I get the following error when I try to build in Release mode:
XA1030 The 'RunAOTCompilation' MSBuild property is only supported when trimming is enabled. Edit the project file in a text editor to set 'PublishTrimmed' to 'true' for this build configuration. C:\Program Files\dotnet\packs\Microsoft.Android.Sdk.Windows\34.0.95\tools\Xamarin.Android.Common.targets
As I understand, this line causes the conflict.
But the wording is very confusing.
You set the default value of <RunAOTCompilation>
to true
for Android, but Sdk ignores more generic <PublishAot>
property.
Description
Well, checking two check boxes breaks the build
Steps to Reproduce
Publish Trimed
andPublish native AOT
Link to public reproduction project repository
No response
Version with bug
8.0.3 GA
Is this a regression from previous behavior?
Not sure, did not test other versions
Last version that worked well
Unknown/Other
Affected platforms
iOS, Android, Windows, macOS, Other (Tizen, Linux, etc. not supported by Microsoft directly), I was not able test on other platforms
Affected platform versions
No response
Did you find any workaround?
No
Relevant log output