Skip to content

Instantly share code, notes, and snippets.

@TinkerWorX
Created August 25, 2019 11:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save TinkerWorX/ff6d6d696bd760b5a12e233d7c42f1f7 to your computer and use it in GitHub Desktop.
Save TinkerWorX/ff6d6d696bd760b5a12e233d7c42f1f7 to your computer and use it in GitHub Desktop.
<Project>
<Target Name="PostBuild" AfterTargets="PostBuildEvent">
<PropertyGroup>
<MonoGamePlatform>Windows</MonoGamePlatform>
<MonoGameContentCommand>&quot;$(SolutionDir)3rdParty\MonoGame.Content.Builder\MGCB.exe&quot;</MonoGameContentCommand>
<MonoGameContentFile>/@:&quot;$(MSBuildThisFileDirectory)\Content.mgcb&quot;</MonoGameContentFile>
<MonoGameContentObject>/intermediateDir:&quot;$(ProjectDir)obj\$(PlatformName)\$(ConfigurationName)\$(TargetFramework)\Content&quot;</MonoGameContentObject>
<MonoGameContentOutput>/outputDir:&quot;$(ProjectDir)bin\$(PlatformName)\$(ConfigurationName)\$(TargetFramework)\Content&quot;</MonoGameContentOutput>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)'=='Windows - Release'">
<MonoGameCompress>/compress</MonoGameCompress>
</PropertyGroup>
<Exec
Command="$(MonoGameContentCommand) $(MonoGameContentFile) /quiet $(MonoGameCompress) /platform:$(MonoGamePlatform) $(MonoGameContentOutput) $(MonoGameContentObject)"
WorkingDirectory="$(MSBuildThisFileDirectory)" />
</Target>
</Project>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment