Can I finally get an .AAB file format from MAUI? - c#

Hello internet people.
I am trying to publish an android app using MAUI to playStore for testing. After reading the documentation, I however keep getting an APK file, but I actually need an .AAB file.
What can I do to achieve this?
Thanks.

Thanks to Gerald and Fildor in the comments to the question.
I have to update the Maui Project Properties, almost like it is done in the Xamarin counterpart.
Below are the steps I took:
Open your solution explorer to the MAUI project
Right click on the solution and go to properties
Go to the Android/Properties in the menu
Set the solutions to Bundles before following the documentation
After which I got the .aab files

Related

How to add .so files to an apk?

I'm having difficulties implementing serial communication in .NET MAUI 7.
I have confirmed that the project at Xamarin.Android.SerialPort works properly.
However, it does not work in my project.
I get an error at [new SerialPort.SerialPortWrapper.SerialPort].
errorCapture
How can I add the libserial.so file to my project APK?
It's too difficult.
Please help.
I have added the open source project from the link to my project, but it does not work.

Cannot tick "Generate Library Layout" Visual Studio UWP

I am getting the error
Could not copy the file "obj\x86\Debug\UnitTestApp.xbf" because it was not found.
and
Could not copy the file "obj\x86\Debug\HovmandUnitTest.xr.xml" because it was not found.
when trying to build my unit test project, in the same solution as the project being tested.
Searching around on google and here, and apparently you have to tick "Generate library layout" in the build options. I tried, and the checkbox is gray and untickable in both the actual project, and the unit test project.
I can't find anyone else with the same issue. Tested on 2 PCs, neither can tick the checkbox.
Thanks in advance for any help.
I can't find anyone else with the same issue. Tested on 2 PCs, neither can tick the checkbox.
You could not use this option within your UWP project. Because, you can't generate UWP project to a library. You could only use it in the class library project.

SpriteFont error in monogame on macOS "Microsoft.XNA.Framework.Content.ContentLoadException has been thrown The content file was not found."

I am trying to follow tutorials on monogame. using Xamarin studio 6.3 and Monogame content pipeline tool 3.6.
The error "Microsoft.XNA.Framework.Content.ContentLoadException has been thrown The content file was not found." keeps appearing. I have looked online and followed some advice, such as moving the font file from ~/Library/Fonts/ to /Library/Fonts/ and tried re-installing the programs. I'm not having any luck though. Always get the same error message.
I found a few posts such as the ones here: https://github.com/MonoGame/MonoGame/issues/5900
and here:
http://community.monogame.net/t/pipeline-fails-to-generate-spritefont/8204
but they say the issue is fixed?
I'm following this tutorial:
http://xnafan.net/2013/04/simple-platformer-game-in-xna-tutorial-part-five-improved-collision-detection/
Just to clarify, I know XNA and Monogame are different things and i've also been following a monogame tutorial here which also doesn't work.
http://rbwhitaker.wikidot.com/monogame-drawing-text-with-spritefonts
Everything is working fine up to the "Adding debug info to the game" section. I've tried several different tutorials incase something was missing from this one but no luck.
Any help or advice would be greatly appreciated :) Thank you
Nick.
Found a fix to the issue! If you download the developer version 3.7 and rebuild from the pipeline tool it works! The link to the dev version is here. download the whole thing as the pipeline tool is included.
http://teamcity.monogame.net/repository/download/MonoGame_PackageMacAndLinux/latest.lastSuccessful/MonoGame.pkg?guest=1
This is a problem a lot of people have that are new to MonoGame. The Content management system for MonoGame works completely different from XNA. The tutorial you're watching shows how to add content to an XNA game, not a MonoGame game. To add content to MonoGame, you need to open the file called Content.mgcb. This will bring you to a new window where you can add your content. Once you have added the content to Content.mgcb, you can save the file and use the Content. I will include step by step pictures to try and assist you in the process.
Step 1:
Find the Content.mgcb file and open it.
Step 2: Select the "Add Existing Item" button.
Step 3: Navigate to the file you wish to add. Select the item and click "Open".
I hope I was able to help.
Good luck,
- GHC

Decompile APK built with Xamarin

Good day all.
I need get C# source code from an apk, I tried a few days ways, but they give me java code.
I built a little game in c# xamarin. I stopped working on it for a while, and now I want continue building it, but I've lost the source code. I have an apk file but cannot get the source code. If there is any way get the source code? Please help me.
first, extract apk using 7zip or winrar. you can also use APKTool
then go to the assemblies folder and open {appname}.dll with dnSpy or dotPeek. if you're not using Microsoft Windows, there's a cross-platform tool called AvaloniaILSpy.
if you don't see the dll file (only .so files) you need to unpack it with this tool.
I opened with dnSpy
First use apktools to unpack apk
then use "https://github.com/tjg1/mono_unbundle" to unpack "libmonodroid_bundle_app.so"
then you will get <your_app_name>.dll
open it by dnSpy

Problems with committing UWP

I have created an app project using Xamarin and UWP, and now I have to commit it to Team Foundation, but I see a lot of errors saying, that it cannot find files.
An example is this project.UWP.Shared\App.xaml.cs: Could not find a part of the path 'project.UWP.Shared\App.xaml.cs'., and I understand that it cannot find the file, but when I look in the solution it exist in another place project.UWP\App.xaml.cs. How can I come around this problem?
I tried excluding project.UWP.Shared even though I do not find it as a good solution, but then it occurs with logos.
UPDATE
A screenshot of the error
A screenshot of TFS pane

Categories