Install 3.8.0.1375-develop VS templates:
Go Extensions > Manage Extensions
Go to Online section
Search for MonoGame
Install “MonoGame project templates”
Install and use dotnet templates:
# Install templates (if you are using Rider, this one command is all you need, templates will appear in its project wizard)
dotnet new -i MonoGame.Templates.CSharp::3.8.0.1375-develop
# List installed templates
dotnet new
# Create project
dotnet new mguwpcore -n MyUwpGame
Have absolutely no idea what rider is, ONLY VS…
My point was, I have no reason to use it…
Right:
1
Start Visual Studio
2
Click Continue without code
3
Then follow the above instructions
Might help adding that to the documentation page.
Otherwise my assumption is create a project then the above.
Make a PR, its an open source project after all!
1 Like
Jesus, thanks for the instructions…
might make a good t-shirt lol
EDIT
Just assume I have zero clue [nor interest still now] with NuGET [Though that is slowly changing] or GitHUB [Not changing in the slightest]
Hang on, so what’s the point of this?
Forum is getting confusing:
@MrValentine With 3.8, will be providing 3 sets of templates:
VSIX for Visual Studio 2019 for Windows
mpack for Visual Studio 2019 for macOS
MonoGame.Templates.CSharp nuget, for dotnet CLI and Rider IDE
The last one is installed using the following command:
dotnet new -i MonoGame.Templates.CSharp::3.8.0.1375-develop
and provides templates when using dotnet new command.
OK
1
install the extension
2
install a nuget magic thing that does something [apparrently]
3
install templates
Are they all required?
EDIT
It might help if you click my name card here
If you are using Visual Studio:
Install extension with templates
Make project
If you are using dotnet cli:
Install nuget with templates
Make project
Something is broken EDIT, using the template
Upon creating a project:
I saw this:
Cannot resolve Assembly or Windows Metadata file 'Type universe cannot resolve assembly: System.Runtime, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a.' MgXAMLTest
And then building and running:
EDIT
And now I cannot add a reference for MG either
EDIT
Dang it, now I am lost.
persn
June 13, 2020, 2:25pm
76
Using the template what? Which template is failing?
Visual Studio
UWP [XAML]
DX
Nothing more interests me at this stage.
persn
June 13, 2020, 2:43pm
78
The Visual Studio MonoGame Windows DirectX Template works fine here. Can you try to build from the same template and copy paste the build output here?
My understanding is, that package is DesktopDX not UWP.
Something seems wrong with your C# install, dotnet new tool-manifest
failed to run, try running it in the current folder of your project.
UWP template works fine on my PC.
Btw. in the develop branch we have made MGCB.Tasks nuget not work with dotnet tool stuff, its self contained.