Setup Monogame graphics
-
Inside your project folder add another folder called content.
-
Start monogame pipeline tool.
-
Add new content project and save it in the folder you created above.
-
Right click on the file created above and add a new folder called graphics inside this project.
-
Add the PNG files you want to the graphics folder which we created above.
-
Go back to the pipeline tool, right click on the graphics folder and “add existing items”. Select the items from the window which opens and press enter (click on open).
-
Now build. This builds the xnb format files.
-
Go back to Visual Studio and add a graphics folder to the content folder in the solution Explorer.
-
Right click on this graphics folder (incidentally this folder is the one we opened in step 4), and click ”add existing item”.
-
Navigate to the bin (bin/graphics) folder in the content folder created in step 1 and select the items.
-
Select “ add as link”. By doing this we always have the content files even if someone changes the assets in the content folder.
-
Back in Visual Studio, select the .xnb files and change the build action (properties) to content.
-
Change the copy to output directory to copy if newer.