A cross-platform port of the Windows Phone / Windows 8 scribbled space action game using MonoGame.
Restore the .Net tools using the following command:
dotnet tool restore
dotnet workload restore
When using Visual Studio for Mac, I needed to disable Fast Assembly Deployment when deploying the App on a physical Android device (Pixel 4). This option can be disabled via Project Properties > Android > Build > Packaging and Deployment. Otherwise, the app was just crashing right at startup most of the time when using the default settings.
App icons have been generated using https://icon.kitchen/.
In Visual Studio for Mac, do the following:
- Import the singing key via Tools > Preferences and Publishing > Android Signing Keys
- Create an AAB file for publishing by right clicking the project file and selecting Archive for Publishing
There is also the possibility to include the signing information in the .csproj
file. However, only plain text worked for me,
which is neither secure nor recommended. And the alternative options to use env:
or file:
as described in
MSDN
did not work somehow.
In case the deployment using Visual Studio for Mac stops working with Mono.AndroidTools.AdbException: Attempted to read past the end of the stream.
,
then either restart the Visual Studio IDE, or kill all related dotnet
processes.
This somehow happens for whatever reason, even after updating it in both the Manifest and the project settings.
One workaround might be to manually delete the obj
and bin
folders, and rebuild the project.
In one case, I then ended up with a build error in Release mode only, related to Xamarin.Essentials
,
and that an xamarin_essentials_fileprovider_file_paths.xml
file is missing. This also seems like a flaky bug, which I resolved by removing and re-adding the Xamarin.Essentials
package.