My Visual Studio does not highlight or autocomplete any Unity3D commands any more. I created a new script when noticing that. I restarted VS, reinstalled VS, also reverted all script changes I made today in my project but the result is still the same. Also I now get errors when trying to open my project file. It says it needs a migration and isn't compatible with the current Visual Studio version installed.
The actual error reads "The application that is based on this project type was not found." [translated from German].
I found similar posts on the web where reinstalling VS resolved the issue. Unfortunately, it did not for me. This is how it looks:
Anybody knows how I can fix this?
Ok, I was able to resolve this issue using this trick:
"Do me a favor... if this is Visual Studio 2017... hit your start menu and find Visual Studio Installer... Run it... select "Modify" and select individual components... find Visual Studio Tools for Unity... if it's installed, untick it and uninstall it, then run the installer again and reinstall it. Otherwise, just tick it and install it."
I'm trying to install the latest version of Visual Studio Community 2017, however I'm having a few issues. I downloaded the Visual Studio installer and run it. After trying to go through it, it just shows and empty dialog box with the only option being to close. There's no error or anything, but if I'm not wrong, it should open the window showing which parts of Visual Studio I want to install. Screenshots showing the process:
Anyone have any experience with this? Or am I doing something wrong?
Please follow the steps as below to completely remove the VS 2017:
Go to Control Panel—Programs and Features, right click the ‘Microsoft Visual Studio 2017’ and choose ‘Uninstall’
Try to delete the following installed folders: %ProgramData%\Microsoft\VisualStudio\Packages and %ProgramFiles(x86)%\Microsoft Visual Studio\2017\Community
After that, make sure windows update is up-to-date, clean up the %temp% folder, temporarily disable any antivirus, download the latest installer from Visual Studio Downloads and run it as administrator to install.
If this issue persists, please use http://aka.ms/vscollect to gather the installation logs and find vslogs.zip under the %temp% folder, then upload the file to Onedrive and share the link here.
This is a known issue, we have fix this in the next major Visual Studio update release. (15.4)
The WMI service on your machine was not working (due to pending OS update). The Bootstrapper depends on WMI service and since WMI service is not working correctly, ManagementException is thrown. In 15.4, we have removed the Bootstrapper's dependency on WMI.
If you see this error again, you can try the followings to workaround this issue.
Workaround:
1. Download latest Bootstrapper from https://www.visualstudio.com/downloads/ and run vs_enterprise.exe --passive --update in an admin command console window. (this will force update your VS Installer)
OR
Reboot your machine and follow this instruction to repair WMI:
https://social.technet.microsoft.com/Forums/windows/en-us/8ed26d46-9994-4052-a307-5b071805aea8/wmi-corrupt-how-to-reinstallrepair?forum=winservergen
OR
Make sure your OS is up to date.
thanks for reporting this issue.
toby.
after several unistalls and reinstalls processes of VS 2017 I'm still getting the following error (translated from spanish) when I try to compile for chrome emulator a new and empty project in vs 2017 RC:
MSBUILD : cordova-build error BLDErr_Build_ToolsetInstallation: Could not find the target tool set on the disk.
I've tried also to perform repair processes but the error still persists. Of course I've checked that android SDK, node, etc. are installed and the environment variables have the correct name and path.
Does anyone know how can force to find cordova tools or whatever it is looking for?
Big thanks in advance.
In my case this worked:
Go to visual studio installer(type it in windows start menu).
Choose to modify your installation of Visual Studio.
Go to indivudual components.
Choose to add cordova 6.3.1(at this moment) toolset.
Install and try to build your project.
I am having a problem with my codova plugin and I can't really run anything or write code.
What happens:
None of the additional files are shown in the solution explorer when I open a new cordova project. (There should be several files and folders according to the manual.) -- see picture included.
I can not build/run (probably because of 1).
I am using Visual Studio enterprise 2015 with the latest updates.
I tried going through the manuals and re-installed twice, nothing helped.
Please help :)
Thanks,Isan.
Open developer command prompt and run devenv /setup. See if it can help to fix the issue.
If above doesn't work, please
go to control panel-> Programs and Features -> double click to launch the installation program of Visual Studio 2015.
Then select "Modify" and deselect the tools for Apache Cordova to remove it first.
After #2, repeat #1 & #2 but this time please select the tools for apache Cordova to reinstall it.
I'm running Visual Studio 2012, when I add a new File/Reference to a project the message box appears showing the error message
set property 'system.windows.resourcedictionary.deferrablecontent' threw an exception
I read an MSDN article suggesting to run the command devenv /resetuserdata on visual studio command prompt to resolve this problem, tried it but didn't work for me. In fact the command prompt shows the Unknown Error message.
Some addins cause this issue for me so have had to workaround it whenever it occurs:
In Vis studio -
Tools > Options > Environment > Add-in Security, uncheck 'Allow Add-in components to load', OK
Restart vis studio
The error shouldn't occur anymore, so go back to
Tools > Options > Environment > Add-in Security and re-check Allow Add-in components to load, OK
To be specific, I get this error when trying to add files to projects and manage Nuget Packages.
Update
I now make a point of opening
'Tools > Nuget package manager > Manage nuget packages for solution'
whenever I open up a new instance of Vis studio, before loading a solution, just to make sure the window loads properly
That way I know I won't get this issue.
In my case it was a style with the same key defined twice in a ResourceDictionary (WPF)
I have Windows azure tools for Microsoft VisulStudio 2013- v2.2 and Windows azure tools for Microsoft lightswitch VisulStudio 2013- v2.2.
I uninstall only Windows azure tools for microsoft lightswitch vs 2013 .
It's working fine...
I fixed it. The resolution was to remove the Windows Azure Tools for Visual Studio 2012 which I was not actually using, and the error went straight away.
In my case it was to first launch Visual Studio in safe mode. You can create a shortcut for visual studio with a target like this:
'"F:\Program Files\Visual Studio\VS2013\Common7\IDE\devenv.exe" -safemode'
Once launched in safe mode, you can remove the problematic extension via the Addin Manager. However, this wont work for some extensions, as the uninstall option might be disabled for certain extensions when running in safe mode, particularly if you have already uninstalled another extension in the same session.
In My case the problem was caused by Paradox Game engine, in which I had uninstalled it via 'Programs and Features' - which in return did not remove the extension which was originally installed via Nuget package. Uninstalling Paradox via "Programs And Features" left the extension itself still registered in Visual Studio, presumably causing a hidden NullReferenceException.
This issue can be caused by any extension that may have an error in it, or by extensions that were not properly uninstalled.
Also, see this article...
The mentioned issue can be resolved by simply restart the Visual Studio. :P
Also seem to be able to get around this by closing the project and vis studio instance, re-opening, then when the start page/open project screen appears selecting Tools > Extensions and Updates..., then pressing Close
Now open the project and the error doesn't get thrown when trying add files or manage nuget packages, weird.
Just annoying you have to remember to open Extensions and Updates each time...
Other wise make sure given Resourcedictionary.xaml path is correct or not
I had to remove Xamarin from Add/Remove Programs in Control panel and restart Visual studio to fix this.
I had this problem with My Devexpress Project in VS 2015
What finally worked for me was.
Close my solution,
Close Visual Studio,
Open Visual Studio,
Create a New dummy project,
Add a form to it,
Close and save the new project,
Reopen original project and all was ok.
for everyone else who are working in silverlight sdk environment with windows phone8 sdk.
The versions of sliverlight which are compatible with visual studio versions -
vs2012- sliverlight sdk 4
vs2013- silverlight sdk 5
I was integrating in vs2013 and as soon as I updated it with silverlight sdk 5, The errors went away.
In my case it was the Line Endings: you can have different formatting and by copy pasting some code one file got a different Line Ending. It was enough to File > Save As and then click the little arrow next to the save button.
Then click on save with encoding and choose the one you are using in all other files.
See Andrew Truckle's answer.
I hope this helps