From eed1b48f45630e2267475f8f7dea65d91a127c29 Mon Sep 17 00:00:00 2001 From: Andrew Katsikas Date: Thu, 31 Oct 2024 09:12:42 -0400 Subject: [PATCH] Add note about PublishAOT and warnings (#78) Co-authored-by: Simon (Darkside) Jackson --- 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 702cb87..ab2f86c 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.