Replies: 2 comments 7 replies
-
This is a known issue in Xamarin.Android issue: #9513. There's no workaround at this time, unfortunately, but the .NET team is actively working on it. The only way to build an Xamarin.ANdroid app at this point is either to disable AOT, or to use .NET 6 through a global.json file. |
Beta Was this translation helpful? Give feedback.
-
I am having trouble with a cross platform library I created which prevents my project from building with net6/7. I tried to add net7 and net7.0-windows10.0.22000.0 as target frameworks - while maintaining net6.0; net6.0-windows10.0.22000.0 as well. The idea was to have 1-2 developers working on net7 compatibility while the rest of the devs kept working on 6. I may be barking up the wrong tee - is this even allowed ??
But then I read FrameworkReference replaced with WindowsSdkPackageVersion for Windows SDK and thought adding it this way would fix it (but it didn't).
Then because of New/Blank Control Library Produces Build Error (Duplicate 'Page' items were included build error) #8921, I also had this snippet which needed
Anyway, can somebody point be towards the latest documentation that covers how I should be configuring a cross platform project library's CSPROJ file ? It seems like this is what cross-platform is for - but are we wasting our time doing this - should we just create a whole separate net7 branch ?? |
Beta Was this translation helpful? Give feedback.
-
After updating to VS 17.4.0 and .NET7, my Android app does no longer compile for the release target.
Important things first: Debug builds still wor fine. On release builds I get a really long list of errors (hundreds of lines), such as the following excerpt:
Any clue what's happening here?
I am using AOT without LLVM and trimming with r8.
Beta Was this translation helpful? Give feedback.
All reactions