Mony Dragon
Mony Dragon
CC#
Created by Mony Dragon on 12/13/2023 in #help
Issue with .NET MAUI App Publishing in Visual Studio & JetBrains Rider
Issue with .NET MAUI App Publishing in Visual Studio & JetBrains Rider I'm facing difficulties publishing a .NET MAUI app using the GUIs in Visual Studio 2022 and JetBrains Rider 2023.3. The issue seems to be with Runtime Identifier (RID) mismatches. While the CLI commands work fine, the GUIs in both IDEs fail to produce a published build. What I've Done: - Checked and ensured correct target frameworks for .NET MAUI. - Edited .csproj to include win-x64; win-x86; win-arm64 in <RuntimeIdentifiers>. - Published successfully using CLI with -r win-x64, -r win-x86, and -r win-arm64. - Updated SDK, tools, and NuGet packages. - Cleaned and rebuilt the project; installed MAUI workload. - Consulted relevant documentation for RID and publishing specifics. Despite these steps, the GUI-based publishing remains unsuccessful. Any insights or solutions for enabling GUI-based publishing in these IDEs would be greatly appreciated. Stack Overflow Post
1 replies
CC#
Created by Mony Dragon on 11/27/2023 in #help
MAUI Project Unable to publish Android APK - Help?
So I'm developing a C#/MAUI application and I am having issues publishing a release/debug build. The project builds just fine just the publishing is causing an error anyone have experience with this? (On a release build) 0>Xamarin.Android.Common.targets(519,3): Error 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. (On a debug build) 1>Xamarin.Android.Common.targets(1426,3): Error XALNS7028 : System.IO.FileNotFoundException: Could not load assembly 'System.Runtime, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. Perhaps it doesn't exist in the Mono for Android profile? File name: 'System.Runtime.dll' Any ideas on how to solve this? I can test my app on Windows/Android etc. but on publish I have the error above
4 replies