自从我升级到VS2015的Update 2后每当我打开一个js文件时我都会收到一个错误(错误日志的摘录如下。我的JS文件似乎工作正常,颜色编码工作以及自动完成但由于某种原因,我的cshtml根本没有使用Intellisense;没有自动完成,忽略断点,没有颜色编码。我已经重置我的用户设置以及卸载和重新安装(几次)确保我有web开发选择的工具。无法使用Intellisense极大地阻碍了我的工作。
您可以提供的任何建议都很棒,Windows 10不允许我使用更新1安装VS 2015,因此如果我无法使用此功能,我需要进行格式化。
<entry>
<record>672</record>
<time>2016/04/11 23:25:24.082</time>
<type>Information</type>
<source>VisualStudio</source>
<description>Begin package load [Microsoft.VisualStudio.LanguageServices.TypeScript.TypeScriptPackage, Microsoft.VisualStudio.LanguageServices.TypeScript, Version=14.0.0.0, Culture=neutral]</description>
<guid>{2FFE45C4-5C73-493C-B187-F2E955FF875E}</guid>
</entry>
<entry>
<record>673</record>
<time>2016/04/11 23:25:24.089</time>
<type>Error</type>
<source>VisualStudio</source>
<description>SetSite failed for package [Microsoft.VisualStudio.LanguageServices.TypeScript.TypeScriptPackage, Microsoft.VisualStudio.LanguageServices.TypeScript, Version=14.0.0.0, Culture=neutral][Expected 1 export(s) with contract name "Microsoft.VisualStudio.LanguageServices.Implementation.ProjectSystem.MiscellaneousFilesWorkspace" but found 0 after applying applicable constraints.]:{ at Microsoft.VisualStudio.Composition.ExportProvider.GetExports(ImportDefinition importDefinition)
 at Microsoft.VisualStudio.Composition.ExportProvider.GetExports[T,TMetadataView](String contractName, ImportCardinality cardinality)
 at Microsoft.VisualStudio.Composition.ExportProvider.GetExport[T,TMetadataView](String contractName)
 at Microsoft.VisualStudio.Composition.ExportProvider.GetExport[T](String contractName)
 at Microsoft.VisualStudio.Composition.ExportProvider.GetExport[T]()
 at Microsoft.VisualStudio.Composition.ExportProvider.GetExportedValue[T]()
 at Microsoft.VisualStudio.ComponentModelHost.ComponentModel.GetService[T]()
 at Microsoft.VisualStudio.LanguageServices.Implementation.LanguageService.AbstractPackage`2.Initialize()
 at Microsoft.VisualStudio.LanguageServices.TypeScript.TypeScriptPackage.Initialize()
 at Microsoft.VisualStudio.Shell.Package.Microsoft.VisualStudio.Shell.Interop.IVsPackage.SetSite(IServiceProvider sp)}</description>
<guid>{2FFE45C4-5C73-493C-B187-F2E955FF875E}</guid>
<hr>80131500</hr>
<errorinfo>Expected 1 export(s) with contract name "Microsoft.VisualStudio.LanguageServices.Implementation.ProjectSystem.MiscellaneousFilesWorkspace" but found 0 after applying applicable constraints.</errorinfo>
</entry>
<entry>
<record>674</record>
<time>2016/04/11 23:25:24.091</time>
<type>Error</type>
<source>VisualStudio</source>
<description>End package load [Microsoft.VisualStudio.LanguageServices.TypeScript.TypeScriptPackage, Microsoft.VisualStudio.LanguageServices.TypeScript, Version=14.0.0.0, Culture=neutral]</description>
<guid>{2FFE45C4-5C73-493C-B187-F2E955FF875E}</guid>
<hr>80131500</hr>
<errorinfo>Expected 1 export(s) with contract name "Microsoft.VisualStudio.LanguageServices.Implementation.ProjectSystem.MiscellaneousFilesWorkspace" but found 0 after applying applicable constraints.</errorinfo>
</entry>
答案 0 :(得分:0)
我升级到了Update 2,但我还没有看到这个问题。您是否考虑过完全卸载,然后重新安装最新版本的VS2015,而不是尝试返回更新1?
不要下载较小的安装程序,而是尝试下载ISO文件,以便在开始安装之前在本地计算机上安装整个安装程序。
如果您在VS网站上找到ISO文件有任何问题,请告诉我,因为找到它有点棘手。