

txt file from it's extension is that it contains text, and all of this importing/processing/writing/reading is unnecessary when something like File.ReadAllText exists. xnb file gets read and converted into your output type (such as Texture2D or SoundEffect).Īll that's known about a. xnb file.Īt runtime, when you use a ContentManager to load your content, the binary. It has predefined content importers for most standard audio and image formats that will import the file, process it into an object, and then write the object into a binary. The content pipeline converts source files into binary. xnb file, and you'll have to read the file manually (not using ContentManager). There's an option in the MonoGame Pipeline Tool to set the Build Action to "Copy" instead of "Build", which is probably what you're looking for.

Plain-text files generally don't require any special processing, and don't need to be converted to a binary format (which is what the content pipeline is for). You're getting this message because the pipeline doesn't contain a content importer for a. ❌ Couldn't find a default importer for 'C:/Users/foo/Documents/Visual Studio 2017/Projects/Platformer/Content/HighResolutionContent/Levels/2.txt'! ❌ Couldn't find a default importer for 'C:/Users/foo/Documents/Visual Studio 2017/Projects/Platformer/Content/HighResolutionContent/Levels/1.txt'! ❌ Couldn't find a default importer for 'C:/Users/foo/Documents/Visual Studio 2017/Projects/Platformer/Content/HighResolutionContent/Levels/0.txt'! ❌ The command ""C:\Program Files (x86)\MSBuild\MonoGame\v3.0\Tools\MGCB.exe" studio 2017\Projects\Platformer\Platformer\Content\Content.mgcb" /platform:Windows /outputdir:"C:\Users\foo\documents\visual studio 2017\Projects\Platformer\Platformer\Content\bin\Windows" /intermediateDir:"C:\Users\foo\documents\visual studio 2017\Projects\Platformer\Platformer\Content\obj\Windows" /quiet" exited with code 3. ❌ Skipping HighResolutionContent\Backgrounds\Layer1_0.pngĬ:/Users/foo/Documents/Visual Studio 2017/Projects/Platformer/Content/HighResolutionContent/Backgrounds/Layer1_0.pngĬouldn't find a default importer for 'C:/Users/foo/Documents/Visual Studio 2017/Projects/Platformer/Content/HighResolutionContent/Levels/2.txt'!Ĭouldn't find a default importer for 'C:/Users/foo/Documents/Visual Studio 2017/Projects/Platformer/Content/HighResolutionContent/Levels/0.txt'!Ĭouldn't find a default importer for 'C:/Users/foo/Documents/Visual Studio 2017/Projects/Platformer/Content/HighResolutionContent/Levels/1.txt'! txt file, but the pipeline tool fails when trying to build the Content.mgcb correctly:

I'm trying a solution in MonoGame to create levels from a.
