在安装然后修复我的VS2015实例后,我仍然无法让智能感知(服务器端)在我的MVC视图中工作.我第一次在会话中打开一个.cshtml文件时会收到消息提示,然后发送到Activitylog文件.在ActivityLog.xml(简短版本)中检索到错误消息:
System.ArgumentException:已添加项目.词典中的关键词:'RazorSupportedRuntimeVersion'
这是完整版:
System.Reflection.TargetInvocationException:调用目标抛出了异常.---> System.ArgumentException:已添加项目.词典中的关键词:'RazorSupportedRuntimeVersion'重点正在补充说:"RazorSupportedRuntimeVersion"在System.Collections.Hashtable.Insert(对象键,对象n值,布尔加)在System.Collections.Hashtable.Add(对象键,对象值)System.Collections.Specialized.HybridDictionary.Add在Microsoft.VisualStudio.Utilities.PropertyCollection.AddProperty(对象键,对象属性)在Microsoft.VisualStudio.Html.Package.Razor.RazorVersionDetector.Microsoft.Html.Editor.ContainedLanguage.Razor.Def.IRazorVersionDetector(对象键,对象的值) .GetVersion(ITextBuffer textBuffer)at Microsoft.Html.Editor.ContainedLanguage.Razor.RazorUtility.TryGetRazorVersion(ITextBuffer textBuffer,Version&razorVersion)at Microsoft.Html.Editor.ContainedLanguage.Razor.RazorErrorTagger..ctor(ITextBuffer textBuffer)--- End内部异常堆栈跟踪---在System.System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr)中的System.Reflection.RuntimeConstructorInfo.Invoke(BindingFlags invokeAttr,Binder binder,Object []参数,CultureInfo文化)中的RuntimeMethodHandle.InvokeMethod(Object target,Object []参数,Signature sig,Boolean构造函数) System.Activator.CreateInstance(Type type,BindingFlags bindingAttr,Binder binder,Object [] args,CultureInfo culture,Object [] activationAttributes)at,Binder binder,Object [] args,CultureInfo culture,Object [] activationAttributes,StackCrawlMark&stackMark) Microsoft.VisualStudio.Text.Tagging.Implementation.TagAggregator'中的Microsoft.Html.Editor.ContainedLanguage.Common.ContainedCodeErrorTaggerProvider'1.CreateTagger [T](ITextBuffer textBuffer)中的System.Activator.CreateInstance(Type type,Object [] args)1.GatherTaggers(ITextBuffer textBuffer)
如果有任何帮助,我会进行一些字体着色自定义,并安装Web Essentials,Bundler和Minifier以及Web编译器扩展.
更新:当我打开现有的Web应用程序或从头开始创建一个全新的Web应用程序时,它就会发生.还有一个VS2013的实例在同一台机器上安装并运行.
正如你从上面的图片中看到的那样,我根本没有智能感知,也没有任何代码着色.
有关如何解决它的任何线索?提前致谢.