Difference between revisions of "Creating A Project"

From TRCCompSci - AQA Computer Science
Jump to: navigation, search
(Install MonoGame)
Line 1: Line 1:
 
=Install MonoGame=
 
=Install MonoGame=
 
In Visual Studio, use the 'open without code' option to load the main interface. Then find 'Extensions' and 'Manage Extensions'. You can then click to browse / search and type 'monogame', this will find the MonoGame extension and click to instal. Remember you normally need to close all Visual Studio windows for the install to commence.
 
In Visual Studio, use the 'open without code' option to load the main interface. Then find 'Extensions' and 'Manage Extensions'. You can then click to browse / search and type 'monogame', this will find the MonoGame extension and click to instal. Remember you normally need to close all Visual Studio windows for the install to commence.
 +
 +
===Making it work in college===
 +
Locate your project `.sln` file. In this folder create a new text file and change the name to `nuget.config`.
 +
 +
Open this file in notepad and copy the code below into the file and save it:
 +
 +
<?xml version="1.0" encoding="utf-8"?>
 +
  <configuration>
 +
    <config>
 +
      <add key="repositoryPath" value=".\installed_packages" />
 +
      <add key="globalPackagesFolder" value=".\installed_packages" />
 +
    </config>
 +
  </configuration>
  
 
=Without MonoGame Installed=
 
=Without MonoGame Installed=

Revision as of 16:11, 20 September 2024

Install MonoGame

In Visual Studio, use the 'open without code' option to load the main interface. Then find 'Extensions' and 'Manage Extensions'. You can then click to browse / search and type 'monogame', this will find the MonoGame extension and click to instal. Remember you normally need to close all Visual Studio windows for the install to commence.

Making it work in college

Locate your project `.sln` file. In this folder create a new text file and change the name to `nuget.config`.

Open this file in notepad and copy the code below into the file and save it:

<?xml version="1.0" encoding="utf-8"?>
  <configuration>
    <config>
      <add key="repositoryPath" value=".\installed_packages" />
      <add key="globalPackagesFolder" value=".\installed_packages" />
    </config>
 </configuration>

Without MonoGame Installed

If you don't have MonoGame installed you could use the nuget package, use THIS document to do this. It will get you to install the MonoGame package and will also create a project. PS This is not the easy way

With MonoGame Installed (3.7 or lower)

No Templates Installed

If you have installed MonoGame onto your own machine and you don't have the templates, or you are using MonoGame in college for the first time then you should use THIS document to create a new project. You will need to download the template zip files from moodle as described in the document.

By the way, this has happened because when MonoGame was installed you hadn't previously opened or run Visual Studio. Re-installing MonoGame should give you the options to add the templates depending on your version of Visual Studio.

With Templates Installed

If your game is okay for just Windows, I would recommend to create just a Windows Project because it will keep everything simple. You could use another option, this will depend on the platform you wish to target but the cross platform option is a good compromise.