Visual Studio, MonoGame integration issue - c#

I installed monogame from there site, the 3.4 version for Visual Studio as it's the version specified for a course I'm taking. I already had the most recent version of Visual Studio 2015 community edition installed for use with unity. Something potentially important to note is that VS is installed on my (f) hardrive where as monogame autamtically installs onto the (C) boot drive where my windows is, I also installed windows SDK there. I don't have enough space on the boot drive for VS and Unity.
The install seemed to go fine, but no monogame templates show up within Visual studio itself when I try and crate a new project. I found them in the directory in documents, so they did install,(F:\Documents\Visual Studio 2015\Templates\ProjectTemplates\Visual C#\MonoGame) and nothing in itemtemplates, though copying it over to item templates didn't do anything. So, for some reason they aren't showing up in Visual Studio and they really need to in order to have any use.
Anyone have suggestions/solutions? I've reinstalled monogame multiple times and am very reluctant to reinstall VS.

I tried a number of things, including suggested solutions on these forums and nothing seemed to have any effect as nothing would appear under templates within VS. I finally just installed MonoGame 3.5 and it worked fine immediately... I've been doing the course with 3.5 and have ran into no problems so far, but admittedly I haven't gotten to the part which makes use of MonoGame yet....

Related

"Could not launch Visual studio" error (on Mac)

I updated Visual Studio on Mac and after it tried to start, it told me I need to install Mono and directed me to a web page for that. I installed Mono. Now every time I launch Visual Studio, it just says
Could not launch Visual Studio
This application requires Xamarin.Mac native library side-by-side.
Please download and install the latest version of Mono.
I tried restarting but that didn't help.
What now?
(I'm running the latest macOS, and updated XCode if that matters. Mono is 5.4.0.201.)
New EDIT:(2022)
Users are saying there's a better way than uninstalling and reinstalling. I haven't tested it myself. See comments and answers for more information.
Previous EDIT:
Uninstalling and reinstalling is still the only way as the answer suggests, on: 2019:
March
July
August
September
The fastest and easiest way will be to uninstall and reinstall Visual Studio.
I have just ran into the same problem. I did follow the alert instructions and installed the newest mono framework from Mono websites (6.10.0). After this still the same issue. So I downloaded and ran VS4M installer and it said, it need version 6.8 of Mono framework and it did offer me to download and install this "update". So i went ahead. Still the same warning after launching VS.
Desperately enough after reading this thread I started looking for uninstall instructions (on official site). I did not want to use the script to auto-uninstall as I rather do it all by myself just for ensuring it will be everything done properly. So manual uninstall said to delete the Visual Studio app from /Application folder first. I did it. And woala: All the sudden the new app called "Visual Studio (old)" appeared (or maybe it was there already but I did not notice? Anyway, it was there). It was certainly weird, but I ran it. And it did work! Working instance of Visual Studio! I did check the updates and there was one for the app only. That was my first step straight after launching. It did download the new update and installed it correctly. Now I have end up with fully working and fully updated version of VS4M!
Conclusion:
Use VS4M installer to install all updates and necessarities to run VS4M. After this go to your /Application folder and delete "Visual Studio" app. The "Visual Studio (old)" app should appear. Run this app and update it straight away. (you might have to rename it afterwards from "Visual Studio (old)" to "Visual Studio")
Did you try going to the Applications folder? You'll see a Visual Studio.app file there and you can run Visual Studio by opening that.
I have sovled the problem by brew install --cask mono-mdk rather than brew install mono, in case anyone is installing mono through brew.

"C# 2017 compiler could not be created" error message while opening project

I've Visual Studio 2017 community edition. I have a C# project created using Visual Studio 2015. When I try to open the project in VS 2017 I get an error message prompt:
--------------------- Microsoft Visual Studio
Project 'dataStructureInCSharp' could not be opened because the Visual C# 2017 compiler could not be created.
Please re-install Visual Studio.
--------------------------- OK
I'm trying to obtain help if anyone else has faced similar issue. I feel going the uninstall and then reinstall route is very costly for me and would try that option last if I've got no other resort.
What I've done so far :
Tried starting visual studio with administrative privileges
But problem remained same.
I tried creating a new console project solution from scratch but in that case I get very same error and an additional error error also shown below:
System Environment: Windows 7 Ultimate Service Pack 1
You can try to close all VS 2017 instances and delete the folder %localappdata%\Microsoft\VisualStudio\15.0_xxxx\ComponentModelCache, then open VS to create a new Console project.
Or
please re-run the VS 2017 installer as administrator, click the icon beside ‘Launch’ button and choose ‘Repair’ to repair as shown below:
Just to brief the history of my problem, I had first installed Visual Studio(VS) 2017 community when it was in RC stage. This was first time when I saw the workload based UI of visual studio installation. Initially I simply chose .Net desktop development workload to get started as I was interested in creating only console applications to get my hands dirty.
Initially it was all working well. One fine day I added all other workloads I was interested in namely Universal Windows Platform Development, Azure Development, ASP.NET and web development,Node.js development, and Mobile development with .Net. I'm not sure if there any of the specific workloads to be blamed for the issue I've posted.
Just to avoid the case if RC and RTM release builds might not have messed up my entire environment, I simply uninstalled the entire stuff, rebooted my machine and installed it again from scratch from latest RTM release for Visual Studio Community.
I would strongly recommend that you first try possible solutions suggested by #Sara-MSFT before doing clean reinstall just in case if it works. It can save you couple of hours required in whole reinstallation process if it works.

Install Monogame on Visual Studio 2017

I am trying to install Monogame on VS 2017 however the option on the installer for VS 2017 is greyed out, even though I have VS 2017 installed. I also have VS 2015 and VS 2010 however I am not sure if it is those that are causing a problem. The version of MonoGame is 3.6.0.1625 and I currently have the directory: C:\Users\MY NAME\Documents\Visual Studio 2017\Templates\ProjectTemplates\Visual C#
Please help thanks
If anyone have this problem and is trying to install on non Admin account then just copy over whole Visual Studio 2017\Templates structure from your Documents to Administrator's Documents. (or the account with admin right you use in UAC prompt to install)
That solved it for me :)
This problem often happens when your templates are in the wrong directory.
The path you provided seems to be the right one tho.
Are your VS2015 templates in the C:\Users\MY NAME\Documents\ directory aswell ?
If not, try to move your VS2017 templates to the same directory as your VS2015 templates.
If those two are both in C:\Users\MY NAME\Documents\, look into Documents\Visual Studio 2017\Templates\ProjectTemplates and try to find the Visual C# folder. If it is missing add a new folder with this name and try again.
OK, simple answer is, that until MonoGame 3.7 drops, you are going to need to download the latest MonoGame Development build from the download page. This is fine as the dev build is still very stable and based off the current MASTER version of MonoGame from source.
I did a short Video on my "Darkside of MonoGame" channel a while back which walks you through everything you need to know to get up and running using VS017. (there is even a version there for VS2015 :D)
https://www.youtube.com/watch?v=zphaylhOrm0
Hope this helps.
I was having this same issue. Uninstalling MonoGame then Visual Studio, and reinstalling Visual Studio then MonoGame worked for me.

This project(Visual Studio 2012 express) is incompatible with the current version of Visual Studio 2013 express

Am doing a back end project in C# in Visual Studio. My team mate had done it using Visual Studio 2012 express and everything seems to work there. But when i used git to clone it to my system where am using Visual Studio 2013 express, one part of the project says its incompatible with the current version of VS. I could clean and build the project, but was unable to run the project. I searched and found that one solution is to go to Programs and features, select VS, right click,select repair. But even after doing this, the problem persists. Is there any work around?
When I was learning ASP.NET MVC by Informit tutorials I was in the very similar situation. I downloaded the sample sources that was created in VS2013 but had VS2015 installed. It was some kind of bug \ magic, but VS didn't recognized some libraries in VS2015 even they were installed. What is more strange is the fact that when I decided to totally rewrite the project line by line it worked!
Of course, I tried to clean, rebuild, reinstall NuGet packages.
So, if you have an access to sources *.cs, then just try to create new project and copy-paste code.

XNA Game Studio 4.0 does not show in installed templates

I've been using XNA Game Studio 4.0 with Visual Studio 2013 Express Desktop Edition for a few weeks now.
Recently, Visual Studio stopped working, saying that it:
could not find all components
I worked around this problem by choosing "repair" from it's setup.
However, it stopped showing XNA as an installed template.
Things I have already tried:
Uninstalling and re-installing Visual Studio
XNA Game Studio
I tried uninstalling XNA Game Studio, but there is no uninstall.exe anywhere, it does not show in "Programs and Features" in Control Panel, and in the Start Menu also it does not have any uninstall features.
As of now, XNA is not part of my installed templates, but it is installed.
When I try to install it again it says
"This extension is already installed to all applicable products".
I finally figured it out!
The problem lied in the Visual Studio software, which stopped working and had to be re-installed (as I mentioned earlier).
After that, XNA was still installed but not showing as an installed template.
So, in Visual Studio, I went in Tools->Extensions and Updates.
In installed templates, it was empty. But after typing "XNA Game Studio" in the search bar, it showed XNA.
The problem was, that it was disabled.
Just enable it and it'll start working like perfect and show up in your installed templates.
I really appreciate the help given to me by #Salah Akbari. Seriously, all suggestions and help is really appreciated.
If you are using Windows 8, XNA is not supported on Windows 8. There is a work around:
Download and install Games for Windows Marketplace Client
You can find it in the following link.:
Games for Windows Marketplace Client

Categories