MonoGame with XNA Content Pipeline

From Leo's Notes
Revision as of 21:33, 20 July 2014 by Leo (talk | contribs) (Created page with "Because MonoGame doesn't have the XNA content pipeline implemented, my current work around is to create a XNA game just for content pipeline and then copy the compiled content...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
This page was last edited on 20 July 2014, at 21:33.

Because MonoGame doesn't have the XNA content pipeline implemented, my current work around is to create a XNA game just for content pipeline and then copy the compiled contents to my MonoGame project.

The XNA project will have a Pre/Post-build event that does the compiling and copying: Pre:

"$(VS100COMNTOOLS)..\IDE\devenv" "$(SolutionDir)Presentation\Content\Contents\Contents\Contents.csproj" /Rebuild

Post:

REM Copy the compiled XNA contents to the build directory.
xcopy "$(SolutionDir)Presentation\Content\Contents\Contents\bin\x86\Debug\Content" "$(TargetDir)Content" /s /e /i /y