

There is absolutely no reason you cannot work with MonoGame from Visual Studio Code.


Which works on dotnet core (i.e you can use dotnet run command to execute it). You can rather chose dotnet new desktopgl If you're working on Linux or have some other reason not to use MSBuild, you should not generate a mgwindows project. exe file will be built successfully and you will get to see the the Output file path which you get to execute. If the program does not contain any compile time errors, the. In other words, use msbuild to build and run the project msbuild (If you're a bit stubborn, you might need to copy the Monogame installed folder(which contains, among many other files, Monogame.target file) in your dotnet installed folder.) NET Framework (version 4.5 if I'm not wrong.) and therefore it might not work with dotnet run command. csproj, Game1.cs, Program.cs and other files/folders of monogame project. On successful execution, this will generate. Now, to generate the project, use the following dotnet new mgwindows To check out all the templates available. We need to add a template for monogame here.Īs per the latest update by the Monogame Team, you can install the templates by executing dotnet new -install "" executing the script dotnet new Ĭreates a new Project. It is available without installing Visual Studio.įor C# project building, dotnet core is required. MSBuild tool is used to Compile/Build monogame project and is available as a CLI. VS Code is just a feature-rich text editor and I would need other toolset for it. I realized that all I needed was to create a monogame project (*.csproj) and Compile/Build it without Visual Studio. If you create a new MonoGame project (I have created a MonoGame Direct X project in Xamarin Studio).Answer edited as Monogame released official dotnet project templates You need to ensure you have MonoDevelop installed, and follow the windows instructions above.

The Linux MonoGame SDK can be downloaded from this link: MonoGame SDK for Linux. You need to ensure you have Xamarin Studio installed, and follow the windows instructions above. The Mac MonoGame SDK can be downloaded from this link: MonoGame SDK for Mac. When you do install, select to install the additional templates to create new MonoGame projects. If you have visual studio installed already you should be able to just install the SDK above. Once installed you should be able to close the add-in manager, and when you create a new solution you should have additional options. Select MonoGame Addin and click the install button on the right. This will start the add-in manager, select gallery, and then game development. With the SDK installed, start Xamarin Studio / MonoDevelop. You can download the MonoGame SDK from this link: MonoGame SDK for Windows.
