Skip to content

Commit

Permalink
Add note about PublishAOT and warnings (#78)
Browse files Browse the repository at this point in the history
Co-authored-by: Simon (Darkside) Jackson <darkside@zenithmoon.com>
  • Loading branch information
apkatsikas and SimonDarksideJ authored Oct 31, 2024
1 parent ae30035 commit eed1b48
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion articles/getting_started/packaging_games.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down

0 comments on commit eed1b48

Please sign in to comment.