How can I create a MonoGame Windows 10 Universal project?

I created a MonoGame Windows 10 Universal project in Visual Studio 2015 Community. But I get many error messages.
For example:
using System.Collections.Generic;
The type of namespace name ‘Collections’ does not exist in the namespace ‘System’ (are you missing an assembly reference?)"
In addition, I get three more similar namespace error messages.

What is wrong? Why are there so many error messages in a blank MonoGame Windows 10 Universal project?

Which MonoGame are you using? 3.5.1?

I installed the current MonoGame for Visual Studio, it’s 3.6.
You can download my project here: https://www.dropbox.com/s/ptc52y4eoq6m6w7/Game5.zip?dl=0

I am not acquainted with the changes made in 3.6 so I hope someone can help you here.

I tested it with 3.5.1 and I get the same error messages.
Could you create a blank MonoGame Windows 10 Universal project and upload it here? I want to try if your blank project works on my system.

Never seen those errors aside from the RT error, see my recent thread post

I have read your thread post and I deleted this part near the end of the file:
`Microsoft.VisualStudio.WinRT.TemplateWizards, Version=14.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
Microsoft.VisualStudio.WinRT.TemplateWizards.ApplicationInsights.Wizard

But I still get all the error messages.
Here is my original WindowsUniversal.vstemplate: https://www.dropbox.com/s/qispsaxmfwkl7hh/WindowsUniversal.vstemplate?dl=0
And here the modified WindowsUniversal.vstemplate: https://www.dropbox.com/s/es2glubijg8m8iu/WindowsUniversalModded.vstemplate?dl=0

Should I change/delete additional things in my modified WindowsUniversal.vstemplate?

Can you just copy the text here? or snap a screen grab…

Original file:

[quote]<?xml version="1.0" encoding="utf-8"?>


MonoGame Windows 10 Universal Project
A MonoGame game project for Windows 10 UWP.
__TemplateIcon.png
__PreviewImage.png
MonoGame.CS.WinRT.UAPGame
WinRT-Managed
CSharp
43160
true
Game
true
Enabled
true
1
Windows
6.1.0
true



App.xaml
App.xaml.cs
GamePage.xaml
Game1.cs
GamePage.xaml.cs
project.json
AssemblyInfo.cs
Default.rd.xml
Package-managed.appxmanifest
LockScreenLogo.scale-200.png
SplashScreen.scale-200.png
Square150x150Logo.scale-200.png
Square44x44Logo.scale-200.png
Square44x44Logo.targetsize-24_altform-unplated.png
StoreLogo.png
Wide310x150Logo.scale-200.png
Application_TemporaryKey.pfx

Content.mgcb




Microsoft.VisualStudio.WinRT.TemplateWizards, Version=14.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
Microsoft.VisualStudio.WinRT.TemplateWizards.CreateProjectCertificate.Wizard


Microsoft.VisualStudio.WinRT.TemplateWizards, Version=14.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
Microsoft.VisualStudio.WinRT.TemplateWizards.ApplicationInsights.Wizard


NuGet.VisualStudio.Interop, Version=1.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
NuGet.VisualStudio.TemplateWizard


Microsoft.VisualStudio.Universal.TemplateWizards, Version=14.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
Microsoft.VisualStudio.Universal.TemplateWizards.PlatformVersion.Wizard







[/quote]

Modified file:

[quote]<?xml version="1.0" encoding="utf-8"?>


MonoGame Windows 10 Universal Project
A MonoGame game project for Windows 10 UWP.
__TemplateIcon.png
__PreviewImage.png
MonoGame.CS.WinRT.UAPGame
WinRT-Managed
CSharp
43160
true
Game
true
Enabled
true
1
Windows
6.1.0
true



App.xaml
App.xaml.cs
GamePage.xaml
Game1.cs
GamePage.xaml.cs
project.json
AssemblyInfo.cs
Default.rd.xml
Package-managed.appxmanifest
LockScreenLogo.scale-200.png
SplashScreen.scale-200.png
Square150x150Logo.scale-200.png
Square44x44Logo.scale-200.png
Square44x44Logo.targetsize-24_altform-unplated.png
StoreLogo.png
Wide310x150Logo.scale-200.png
Application_TemporaryKey.pfx

Content.mgcb




Microsoft.VisualStudio.WinRT.TemplateWizards, Version=14.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
Microsoft.VisualStudio.WinRT.TemplateWizards.CreateProjectCertificate.Wizard

NuGet.VisualStudio.Interop, Version=1.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a NuGet.VisualStudio.TemplateWizard Microsoft.VisualStudio.Universal.TemplateWizards, Version=14.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a Microsoft.VisualStudio.Universal.TemplateWizards.PlatformVersion.Wizard [/quote]

Not modified correctly I believe it takes white space very seriously which I am sure I mentioned in my guide, also where is your error list?

OK, just read my guide again and you clearly did not read it all, there is still an entry in your template…

I changed it but it still not works.

Can you post the error log, otherwise I find this hopeless…

Thanx. It works now. The problem was that I needed to click on the green debug arrow in Visual Studio after I created the project. After that, Visual Studio installed all the missing stuff itself and now the project works in the simulator. I have not tested it on a Windows phone 10 device because my device just supports Windows Phone 8.1.

My template file:
<?xml version="1.0" encoding="utf-8"?> <VSTemplate Version="3.0.0" xmlns="http://schemas.microsoft.com/developer/vstemplate/2005" Type="Project"> <TemplateData> <Name>MonoGame Windows 10 Universal Project</Name> <Description>A MonoGame game project for Windows 10 UWP.</Description> <Icon>__TemplateIcon.png</Icon> <PreviewImage>__PreviewImage.png</PreviewImage> <TemplateID>MonoGame.CS.WinRT.UAPGame</TemplateID> <TemplateGroupID>WinRT-Managed</TemplateGroupID> <ProjectType>CSharp</ProjectType> <SortOrder>43160</SortOrder> <CreateNewFolder>true</CreateNewFolder> <DefaultName>Game</DefaultName> <ProvideDefaultName>true</ProvideDefaultName> <LocationField>Enabled</LocationField> <EnableLocationBrowseButton>true</EnableLocationBrowseButton> <NumberOfParentCategoriesToRollUp>1</NumberOfParentCategoriesToRollUp> <TargetPlatformName>Windows</TargetPlatformName> <RequiredPlatformVersion>6.1.0</RequiredPlatformVersion> <CreateInPlace>true</CreateInPlace> </TemplateData> <TemplateContent PreferedSolutionConfiguration="Debug|x86"> <Project File="Application.csproj" ReplaceParameters="true"> <ProjectItem ReplaceParameters="true" TargetFileName="App.xaml">App.xaml</ProjectItem> <ProjectItem ReplaceParameters="true" OpenInEditor="!blend" TargetFileName="App.xaml.cs">App.xaml.cs</ProjectItem> <ProjectItem ReplaceParameters="true" OpenInEditor="blend" TargetFileName="GamePage.xaml">GamePage.xaml</ProjectItem> <ProjectItem ReplaceParameters="true" TargetFileName="Game1.cs">Game1.cs</ProjectItem> <ProjectItem ReplaceParameters="true" TargetFileName="GamePage.xaml.cs">GamePage.xaml.cs</ProjectItem> <ProjectItem ReplaceParameters="false" TargetFileName="project.json">project.json</ProjectItem> <ProjectItem ReplaceParameters="true" TargetFileName="Properties\AssemblyInfo.cs">AssemblyInfo.cs</ProjectItem> <ProjectItem ReplaceParameters="true" TargetFileName="Properties\Default.rd.xml">Default.rd.xml</ProjectItem> <ProjectItem ReplaceParameters="true" TargetFileName="Package.appxmanifest">Package-managed.appxmanifest</ProjectItem> <ProjectItem ReplaceParameters="false" TargetFileName="Assets\LockScreenLogo.scale-200.png">LockScreenLogo.scale-200.png</ProjectItem> <ProjectItem ReplaceParameters="false" TargetFileName="Assets\SplashScreen.scale-200.png">SplashScreen.scale-200.png</ProjectItem> <ProjectItem ReplaceParameters="false" TargetFileName="Assets\Square150x150Logo.scale-200.png">Square150x150Logo.scale-200.png</ProjectItem> <ProjectItem ReplaceParameters="false" TargetFileName="Assets\Square44x44Logo.scale-200.png">Square44x44Logo.scale-200.png</ProjectItem> <ProjectItem ReplaceParameters="false" TargetFileName="Assets\Square44x44Logo.targetsize-24_altform-unplated.png">Square44x44Logo.targetsize-24_altform-unplated.png</ProjectItem> <ProjectItem ReplaceParameters="false" TargetFileName="Assets\StoreLogo.png">StoreLogo.png</ProjectItem> <ProjectItem ReplaceParameters="false" TargetFileName="Assets\Wide310x150Logo.scale-200.png">Wide310x150Logo.scale-200.png</ProjectItem> <ProjectItem ReplaceParameters="false" TargetFileName="$projectname$_TemporaryKey.pfx" BlendDoNotCreate="true">Application_TemporaryKey.pfx</ProjectItem> <Folder Name="Content" TargetFolderName="Content"> <ProjectItem ReplaceParameters="true" TargetFileName="Content.mgcb">Content.mgcb</ProjectItem> </Folder> </Project> </TemplateContent> <WizardExtension> <Assembly>Microsoft.VisualStudio.WinRT.TemplateWizards, Version=14.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</Assembly> <FullClassName>Microsoft.VisualStudio.WinRT.TemplateWizards.CreateProjectCertificate.Wizard</FullClassName> </WizardExtension> <WizardExtension> <Assembly>NuGet.VisualStudio.Interop, Version=1.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</Assembly> <FullClassName>NuGet.VisualStudio.TemplateWizard</FullClassName> </WizardExtension> <WizardExtension> <Assembly>Microsoft.VisualStudio.Universal.TemplateWizards, Version=14.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</Assembly> <FullClassName>Microsoft.VisualStudio.Universal.TemplateWizards.PlatformVersion.Wizard</FullClassName> </WizardExtension> <WizardData> <packages repository="registry" keyName="NETCoreSDK" isPreunzipped="true"> <package id="Microsoft.NETCore.UniversalWindowsPlatform" version="5.0.0" skipAssemblyReferences="false" /> </packages> </WizardData> </VSTemplate>

Activate preview, download the app… stick to the slow stable ring.

Glad you got things working, good luck!