I’m trying to publish a MonoGame 3.8 dotnet core project using the /p:PublishTrimmed=true flag, but I’m met with an error when publishing (see pic below). The project has a DirectX project that calls the main game code in a MonoGame .net standard shared project. It also has a utility project that is a .net standard class library
Keep in mind the .NET Core trimming stuff is in preview and is experimental, so it may unfortunately be hit and miss:
If you are publishing, you have options to deploy as Framework-dependent (expects you’ll already have .NET Core installed, and your program will be small) or Self-contained (you pack in all the Framework stuff yourself, and the program will be really large).
You may want to try Framework-dependent, and then let people know where to download .NET Core. In fact, if you try to open a .NET Core exe and don’t have it installed, I believe the user is prompted to download it.