I have a problem in Visual Studio 2010 Ultimate and WP7 SDK.
I have installed the WP7 SDK and when i tried to use Add an item... in my solution the list of installed templates was completely empty.
Then i updated to the WP7.5 SDK the same happened.
I uninstalled the SDK and reinstall nothing.
I tried to reset the settings using the methods described here and here
I uninstalled everything related to VS and reinstalled it with the same thing happened.
Any info to fix it?
There are several things you could try.
Make sure that the language of the IDE matches the one in your settings. Go to Tools > Options > Environment > International Settings and set the Language to English. Once done, go to point 2.
Most obvious - devenv /installvstemplates
Uninstall Visual Studio itself (not sure what you meant by everything related)
Open C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\ProjectTemplates and C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\ItemTemplates - check that the templates are physically present in the folder.
I've got the same problem. The problem was in language settings: I used russian version of Windows 7, english version of VS2010 and installed russian version of WP7.1 SDK.
I fixed it with this:
Tools > Options > Environment > International Settings and set the Language to "same as Windows language" (it means russian).
Related
I have tried to switch to Visual Studio 2019 since it is now officially released, but I am having problems building a C++/CX based project.
I have not retargeted the project, but it is still configured to use the v141 platform toolset, i.e. Visual Studio 2017 Build Tools.
As far as I can tell, I have specifically installed the required build tools in Visual Studio 2019, which should be evident here:
Still, according to the project properties, Visual Studio 2017 Build Tools are not installed:
And when I build the project I get the following error:
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\MSBuild\Microsoft\VC\v160\Microsoft.CppBuild.targets(378,5): error MSB8020: The build tools for Visual Studio 2017 (Platform Toolset = 'v141') cannot be found. To build using the v141 build tools, please install Visual Studio 2017 build tools. Alternatively, you may upgrade to the current Visual Studio tools by selecting the Project menu or right-click the solution, and then selecting "Retarget solution".
Am I still missing some components in my installation, or is this a bug in Visual Studio 2019?
EDIT I should point out that I still have Visual Studio 2017 installed on the same computer as well.
I had a similar issue, but this is what I was missing.
You will find these options on the Workloads tab of the VS installer on the right under Installation details (i.e. not under Individual components).
It turns out that the (Windows Runtime Component) project was not properly set up. In the .vcxproj file the ApplicationTypeRevision element was missing, which is also "evident" (if you know what you are looking for...) from looking at the project properties above, where only the General configuration properties node is visible, and the Target Platform value is empty.
Inserting the following line in the .vcxproj file immediately following e.g. the WindowsTargetPlatformMinVersion element should do the trick:
<ApplicationTypeRevision>10.0</ApplicationTypeRevision>
Most likely, it was also necessary to add the C++ Universal Windows Platform Tools. The v142 version was made available when trying to create a new C++ Universal Windows Platform project. As far as I could tell, this component was not otherwise visible in the Visual Studio Installer? Once the v142 component was installed, the corresponding v141 component was also available for installation.
I had this same problem for Visual Studio 2017, even though V141 was explicitly shown as installed. It turned out the problem was that VCTargetsPath was set in System Environment Variables to "C:\Program Files (x86)\MSBuild\Microsoft.Cpp\V4.0\V140". Removing or unsetting this variable solved the issue.
I suspect this variable was set during an earlier install of Visual Studio 2015. Even after uninstalling all other Visual Studios the variable was never removed and the problem persisted.
Problem picture
Environment:
Windows10 Professional Visual Studio 2017 Unity 2017.4.12f1
I changed the default installation path of Visual Studio 2017 and installed it successfully.
The install path as follows:
D:\win10\Program\visual_studio\2017
However, in the Build setting of Unity, it still can't find my Visual Studio 2017.
How can I solve the problem? Thanks~
Go to Edit > Preferences, and select your Visual Studio to be the preferred external editor. Use Browse if Visual Studio is not listed. More info here.
You need to install windows 10 SDK
https://developer.microsoft.com/en-us/windows/downloads/windows-10-sdk/
Here's a third answer. I just bumped in to this, and checked that yes VS was the preferred editor, so I went to open up VS to try uninstalling and reinstalling the GameDevWithUnity workflow, but VS popped up a dialog saying I needed to reboot my computer before installation could complete. So it seems like VS was stuck in the middle of an upgrade, which makes it reasonable that Unity couldn't find an appropriate version. I rebooted and everyone is happy.
I've installed an update of Code Contracts but the version of Code Contracts shown in the "Extensions and Updates" window has not changed. However in project properties, the version number has changed.
Why is the current version in "Extensions and Updates" not changing and how I can fix it?
If it helps: I use Windows 7 Enterprise and Visual Studio Professional 2013
EDIT:
I restarted program and computer.
I have just installed Visual Studio 2013. I do not install older versions of Visual Studio.
On "Code Contracts" tab in project properties I see a new version number. And I think that the Code Contracts libraries are updated.
I tried to remove and reinstall Code Contracts. It doesn't help. But I don't want reinstall Visual Studio.
EDIT 2:
Extensions and Updates:
Project properties:
This seems to be an issue with the uninstaller as described in this MSDN forum thread by user Manuel Pallier
Check if you have two folders in C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\Extensions\Microsoft\CodeContracts, one with the old version number and one with the new one.
Follow these steps to clean-up all versions and then reinstall the correct version of Code Contracts:
Uninstall Code Contracts via the control panel.
Delete the folder C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\Extensions\Microsoft\CodeContracts.
Touch the file C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\Extensions\extensions.configurationchanged (touching means updating its last modified date; just open it in an editor and save it without changes). This step is required so that Visual Studio rebuilds its extension database on the next start.
Start Visual Studio and make sure the Code Contracts extension is gone from the extensions screen.
4b. Click Uninstall if it hasn't (might be the case for 1.8.x -> 1.9.x)
Then close Visual Studio again.
Install the new version.
Start Visual Studio and make sure it shows the new version in the extensions screen.
There is a similar answer on SO from user Steven Liekens that seems to confirm that the uninstaller is flaky.
Uninstalling Visual Studio seems NOT to be the way to solve so don't go down that route.
Version 1.9.10714.2 seems to have a bad vsixmanifest file.
I did all the above and then edited
C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\Extensions\Microsoft\CodeContracts\1.9.10714.2\extension.vsixmanifest and corrected the version number.
Re-touched the extensions.configurationchanged file and VS accepted that the version installed was upto date.
I have found an Identity Version number mismatch in the manifest file after all the steps mentioned above, installing 1.9.10714.2, as you can see below:
...Identity Version="1.8.10107.10"...
I fixed the Identity Version number and I solved the problem.
I am missing the silverlight 4 templates for Visual Studio 2010. devenv /installvstemplate doesn't work because the actual files are missing, and the specific one I want (User Control) doesn't show up in the list of online templates. I've already tried the solutions in Missing Project/Item Templates.
C:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE\ does not contain any project templates or item templates.
I've already tried uninstalling and reinstalling all Silverlight components and tools I'm using.
Is there any way to just download the templates directly and put them in that folder?
I went to the windows control panel, Programs and Features, and did a re-install of Visual Studio (VS lets you do that without having to uninstall and lose all your settings). After that, I re-instaled all the silverlight components I'm using. The templates are available now.
This helped me: http://chiragrdarji.wordpress.com/2008/05/06/missing-templates-in-visual-studio-installed-templates/
If you Close all instance of Visual Studio. Open visual studio command prompt and type,
devenv /installvstemplates
Press Enter
I installed Visual Studio 2008 package FULL option. It worked with out any problem. I installed Vstudio 2008 and MSDN in separate folder in the D drive. 2 days later in order to remove my projects i uninstalled every thing and also i deleted visual studio 2008, visual studio 2005 folders from C:\Documents and Settings\IRCTC\My Documents. (I believe these 2 folders were automatically created when we install visual studio) also I cleared %path% and path (c/windows/path). Again I installed VISUAL STUDIO 2008 but now I can't able to create window application (other web, vb also), what is the solution for this ...
ERROR that shown is
c:/documents and settings/IRCTC/local settings/temp/g1zzsdl.bak/temp/windowsFormsApplication.csproj cannot be opened because project type (.csproj) is not supported by this version of visual studio.......
Whether any system file corrupted (windows temp or .net folber in windows).....
No other installation problem found in my system.....
please help.....
What are the files/folders required for the installation......
When you get that error is usually because:
You are trying to open a project created with a previous version of Visual Studio (not your case)
There was a bit of a screw-up during the installation (sounds like your case)
I'd uninstall the thing and reinstall completely first thing.
If it still doesn't work, it could be related to VS templates and you might wanna try and run from Visual Studio 2008 command prompt:
devenv /InstallVSTemplates
If it still doesn't work, open Visual Studio, in the menu, Open Tools->Options->Projects and Solutions->General. At this point you will notice the path of Project Templates is set to "C:\Documents and Settings[yourUserName]\My Documents\Visual Studio 9\Templates\ProjectTemplates" or something very similar to that. In order to fix it you gotta set that path to C:\Program Files\Microsoft Visual Studio 9\Common7\IDE\Project Templates or the same path according to wherever you installed Visual Studio
I don't think is related to VS project Templates though - see this link
Try and see what happens!
Why didn't you use visual studio's uninstall function available from the control panel|add/remove programs?
I would uninstall the latest installation as described above, and try again.