From 397dae9a24183ee7b19f63e95d9b651ab530f197 Mon Sep 17 00:00:00 2001 From: apkatsikas Date: Mon, 28 Oct 2024 22:06:41 -0400 Subject: [PATCH] Add note about PublishAOT and warnings --- articles/getting_started/packaging_games.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/articles/getting_started/packaging_games.md b/articles/getting_started/packaging_games.md index 702cb87f..ab2f86cb 100644 --- a/articles/getting_started/packaging_games.md +++ b/articles/getting_started/packaging_games.md @@ -174,7 +174,9 @@ However, you do need to currently add some additional settings to your `.csproj` The `TrimmerRootAssembly` stops the trimmer removing code from these assemblies. This should allow the game to run without any issues. However if you are using any Third Party or additional assemblies, you might need to add them to this list or fix your code to be `Aot` compliant. -It is recommended that you publish using AOT as it simplifies the app bundle. +It is recommended that you publish using AOT as it simplifies the app bundle. + +You may see some trim and AOT analysis warnings related to MonoGame when using PublishAOT, even after adding `TrimmerRootAssembly` - these are normal and should not present any issue. See [Trim self-contained deployments and executables](https://learn.microsoft.com/en-us/dotnet/core/deploying/trimming/trim-self-contained) for more information.