Maui create release version of App

Lloyd Sheen 1,376 Reputation points
2023-01-07T19:24:12.69+00:00

Ok I have an app which I would like to create a release version.

I change to Release mode.

I then build, took about 5 times before it worked. The errors mean absolutely nothing to me so I just kept on trying as this seems to be the way VS works these days.

To test the app I tried to run it (release version) on the emulator. Guess what ..... it doesn't work.

Now the build of the release version takes forever as .... 1>Optimizing assemblies for size. This process might take a while. happens about 6 times so you have a good 5 minute wait.

Ok then the execute.

Start debugging Android application ...

am start -a "android.intent.action.MAIN" -c "android.intent.category.LAUNCHER" -n "com.companyname.NHLMauiApp/crc64da07ba42ee3ae186.MainActivity"
Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=com.companyname.NHLMauiApp/crc64da07ba42ee3ae186.MainActivity }

Android application is running (debug is disabled in android project properties).

It just doesn't run and since it is release I have no idea what is happening.

Any ideas????

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,604 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,866 questions
{count} vote