Visual Studio 2015 has been RTM for one month. However, it blows up very often, such as Razor editor. When I try to open any .cshtml file, it blows up with this error, then the syntax highlight is gone. I tried to uninstall all add-on, even repair install VS2015 can't get it working.
The detailed error message is:
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.ArgumentException: Item has already been added. Key in dictionary: 'RazorSupportedRuntimeVersion'
Someone has already filed a bug on "connect", and it is active:
The solution is:
1. Close all instance of VS2015
2. Run cmd as administrator, go to VS2015 setup directory, and run:
devenv /resetuserdata
3. Go to your project folder, delete a hidden folder named ".VS"
4. Restart VS2015, it will work fine!
这种药丸的趋势是从印度人上台以后就有了么。。
严重同意,最近ms做死节奏加快。自从win10上线,win、8.1的onedrive变得极不稳定,wp8.1的onedrive直接连不上了。win10的onedrive还得把那个什么officexxx功能关了,不然office文档不能上传下载。哎
太感谢了。。。。VS重装两次了都
今天我VS 2015的Razor编辑器也爆了,用你的方法重置修好了。多谢分享经验。