Can't make Visual Studio 2010 XNA Windows Game project? - visual-studio

I can't make a Visual Studio 2010 XNA Windows Game project. When I do, I receive the following error message:
Now, I already tried running "devenv.exe /InstallVSTemplates" with no luck. This command executes just fine, but all it does is to create duplicates of the already existing "XNA Windows Game" project templates.
Upon opening these duplicates, I get an object null reference exception from Visual Studio.
What's going on? All of this worked just 1 month ago. Since then, I've been doing some development with Windows Phone Mango SDK 7.1 RC. Could this be it? I'd be very unhappy to uninstall this in order to get it to work.
Please help me.

I have zipped up the XNA C# Project templates from my Visual Studio folder.
Unzip these into:
C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\VPDExpressExtensions\Microsoft\XNA
Game Studio 4.0\ProjectTemplates\CSharp or the equivalent location on your machine.
The file can be found here: XNA C# Project Templates
Let me know if this solves your issue.

Related

Visual Studio 2015 Community Xamarin Cross-Platform templates missing

I installed Visual Studio 2015 Community Update 3 with Xamarin, updated Xamarin and everything was working fine.
But suddenly, the Xamarin Cross-Platform templates went missing when I tried to create a new project.
I don't have these templates anymore:
I only have these ones:
What I tried:
Change
Repair
Uninstall & reinstall Xamarin
Tried this solution (delete cache.bin files): https://stackoverflow.com/a/40201478/1351076
Configuration:
Visual Studio 2015 Community Update 3
Xamarin 4.2.2.11
Question:
Anyone having this issue or a solution?
Can I download somewhere the official missing templates?
This was working for me:
C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\Extensions\
Find the correct subfolder. This can be tricky. I had a Xamarin folder, but that was not the right one. In my case it was folder wa13kl1p.m3s.
However, open your folders and check it there is some Xamarin.Forms.Templates... files in it.
Inside that folder navigate to the T/P/CSharp folder.
Copy the Cross-Platform folder over to C:\Users\\Documents\Visual Studio 2015\Templates\ProjectTemplates\Visual C#
Same thing for the ItemTemplates:
But this time navigate to T/I/CSharp folder.
Copy the Cross-Platform folder over to C:\Users\\Documents\Visual Studio 2015\Templates\ItemTemplates\Visual C#
In the current Beta channel, the templates all get merged into a "Wizard Template" instead.
Which will give you all of the same options as the separate templates gave:
However if you run into an issue where templates are not included, please ensure you check your Xamarin extension cache:
C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\Extensions\Xamarin\Xamarin
Which will have various versions such as 4.2.2.11 that you are currently on. You can then move those .vstemplate files from the .zips to your C:\Users\{username}\Documents\Visual Studio 2015\Templates\ProjectTemplates\Visual C# location.
I would highly recommend updating to the Beta channel to ensure this template is at least there before doing this.

.csproj file unsupported in Visual Studio 2013

So I'm trying to do what I think is a very simple thing: generate a Windows Phone app with PhoneGap and open it in Visual Studio. On a totally fresh Windows installation (via Bootcamp), I've:
Downloaded Visual Studio Express 2013 for Windows (the very first download button: http://developer.windowsphone.com/en-us/downloadsdk)
Created a PhoneGap Windows Phone app per the Getting Started guide.
However, every time I try to open the csproj file, I keep getting this error:
Unsupported
This version of Visual Studio is unable to open the following projects. The project types may not be installed or this version of Visual Studio may not support them.
For more information on enabling these project types or otherwise migrating your assets, please see the details in the "Migration Report" displayed after clicking OK.
- HelloWorld, "C:\BodBot\BodBot-PG\BodBot\platforms\wp8\HelloWorld.csproj"
No changes required
These projects can be opened in Visual Studio 2013, Visual Studio 2012, and Visual Studio 2010 SP1 without changing them.
- HelloWorld, "C:\BodBot\BodBot-PG\BodBot\platforms\wp8\HelloWorld.sln"
No matter what I do. It works totally fine on Visual Studio 2012 for Windows Phone. I've tried it on VS 2013 for Desktop, and that doesn't work either. No clue what is happening here, and don't know even where to start to figure out what's wrong. I've Googled extensively to no avail; basically all instances of this error seem to have to do with previous version of VS. Pointing in any direction would be very much appreciated.
Turns out Update 2 wasn't getting installed correctly. I ended up installing Visual Studio and the Update 2 separately and Update 2 got installed successfully. Everything works now.
To build Multi device hybrid (Cordova tooling) apps with Visual Studio, you need to have Visual Studio 2013 Update 2 - Professional, Ultimate, or Premium.
Visual Studio 2013 Update 2: Global Apps e Android/iOS App

Portable class library in visual studio 2013 (wp7/win8)

How to create PCL wp7/win8 in visual studio 2013?
I have already installed windows phone 7 sdk and windows phone 8 sdk, but it does not help.
There is no option for wp 7.1.
Visual Studio does not support Windows Phone 7 development.
This may change in the future but, based on what has happened with previous versions of Visual Studio and separate SDKs, I suspect that is unlikely.
It's only possible to target PCL projects for SDKs that are installed.
You could build your PCL in VS2012 and consume it in a VS2103 project though.
On the other (/plus?) side, there are free versions of VS2012 and VS2013 and the can be installed side by side so you'll be able to build for WP7 for plenty of time to come.
Visual Studio 2013 has removed support for Windows Phone 7.x, Silverlight 4 and Xbox development.
For the entire list of compatibility between Visual Studio 2012 and Visual Studio 2013, see: http://msdn.microsoft.com/en-us/library/vstudio/hh266747(v=vs.120).aspx.
Keep in mind that VS 2013 is still a preview. So maybe it will be available later but for the moment it looks like you can only create a PCL project with support for both Windows Phone 7 and Windows Store apps by using Visual Studio 2012
There is a solution according to
http://www.johanlaanstra.nl/2013/09/22/portable-class-libraries-with-wp7-support-in-visual-studio-2013-rc
...was wondering why Visual Studio would upgrade the project while the
profile was there on disk. While digging through the xml files for
Profile104 (C:\Program Files (x86)\Reference
Assemblies\Microsoft\Framework.NETPortable\v4.0\Profile\Profile104),
which is the profile I was using, I found some xml files in the
SupportedFrameworks subfolder. These xml files defined a
MinimumVisualStudioVersion and a MaximumVisualStudioVersion. For
Profile104, one of the files contained MaximumVisualStudioVersion="11"
which means Visual Studio 2012. Changing all xml files for the profile
to have MaximumVisualStudioVersion="12", which means Visual Studio
2013, made my scenario work after a restart of Visual Studio. I can
now open the PCL in Visual Studio 2013 without it being upgraded. Make
sure you restart VS after this change to make it work.

VS2010 doesn't appear in my apps windows 8

Mine is a Windows 8 machine. I installed Visual Studio 2012, then went to Microsoft SQL Server 2012. Later I was told to install Visual Studio 2010.
The first two installs worked great. Got all the neat icons and everything is good. MSVS2010 SP1 got installed successfully.
Now the third install of Visual Studio 2010 is where I am stuck.
I am downloading it from a Microsoft licensed CD. No errors during installation, but it is only installing Microsoft Visual Studio command prompt, X64 Win64 command prompt and Microsoft Visual Studio 2010 documentation. Nothing else. So basically I dunno where to start to fire up the program.
So I went to C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7, C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7 to find the devenv.exe. Couldn't find in either of the locations.
Then went to Run and typed devenv.exe, boom VS2010 opens. So I did a Apps search on Windows 8. When I type devenv.exe the only thing I could find there is SQL Server data tools which has a VS2010 icon. Double click this and VS 2010 opens. So my guess is SQL server 2012 needs VS2010 and installed it.
Questions:
Where is devenv.exe?
Why isn't it installing the rest of the stuff?
How do I start VS2010?
I don't think double clicking on sql server data tools is the correct way. I want VS2010 to appear in my Apps just like any other application. This could be a rather silly question. I did a lot of research and am kinda confused with all these parameters.
In Windows 8, if you search for "Visual Studio" in "Start" screen you won't find VS 2010. Instead search for "devenv", it appears.
Searching for "SQL server data tools" also will work.
In 64bit machines, you can find 2010 in
C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE
Create a Desktop short cut.
Uninstalling and re installing Visual Studios is not required for the Visual Studio 2010 icon to show up on Windows 8.The Visual Studio 2010 icon is located at C:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE\devenv. You can add this icon to your task bar or windows desktop and launch Visual Studio 2010. There are two devenv icons in that folder location just select latest one you can find that out by looking at the file properties. The folder path I mentioned above will be different for 64 bit windows machines.
For some reason Visual Studio 2010 did not completely load for me, although it said it did. So I went into its folder and selected the setup.exe to run maintenance mode. There I re-installed it. It asked me (this time) to restart my laptop. I did that. Then I was prompted to update it using the service pack 1 update, via the given link. Then it was ok.
There are two ways to view:
In Win8 or Win8.1 search for "devenv.exe" name it appear and create shortcut in desktop.
Go to this address on your computer:
C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\devenv.exe
and create a shortcut for this file on your desktop.
You have two options here
in windows 8.0 or 8.1 go to run and type'devenv' and then the Visual studio opens up for you.
Else search using the app name and select 'Microsoft Visual studio' from the list of apps installed, right click on the app and select the option 'pin to the start' or 'pin to the task bar'. This creates short cut with the icon of the app handy.

Visual Studio Express for Windows Phone not showing correct Design View

For some reason Visual Studio is showing me this weird, ugly skeleton design view when I try building Mango apps instead of the regular fully detailed view I used to get with the old 7.0 apps.
Any idea what setting I need to change to revert back to the old view? I've spent forever searching for the right option but can't find it anywhere.
Here's what my design view currently looks like:
Thanks,
Zain
I had the same problems few weeks ago. Normally an uninstallation would not really help. I guess you also have installed the Visual Studio 2010 Service Pack 1. So to solve your problem, uninstall all of your Visual Studio and Windows Phone Related Products, normally these are:
Visual Studio 2010 (or Express)
Visual Sudio 2010 SP1
Microsoft XNA Game Studio 4.0 Refresh
After uninstallation install all products in the following order:
1) Visual Studio 2010 (or Express)
2) Microsoft XNA Game Studio 4.0 Refresh
and after (1) and (2) install and apply the Visual Studio 2010 - Service Pack 1.
Thre problem is, that if you install the SP1 before the Game Studio, there are some missing links and files which are not patched and this leads to the missfunctionality of the Windows Phone Designer.
I hope, i was able to help you :)

Resources