PC重启后,Visual Studio 2015无法加载

时间:2018-03-01 15:08:59

标签: c++ visual-studio build

我一直在使用VS2015专业版大约一年,但我的电脑出现电源故障,重启后VS2015无法运行。

启动徽标出现约一秒钟然后消失。

在命令行上:

C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC>devenv /setup

Package 'Async Query Service Package' failed to load.
C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC>

问题似乎是异步查询服务包。

在activitylog.xml文件中,我看到错误:

  <entry>
    <record>5</record>
    <time>2018/03/01 14:48:06.133</time>
    <type>Error</type>
    <source>VisualStudio</source>
    <description>LegacySitePackage failed for package [Async Query Service Package]Source: &apos;Microsoft.VisualStudio.Shell.14.0&apos; Description: Could not load file or assembly &apos;WindowsBase, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35&apos; or one of its dependencies. The system cannot find the file specified.&#x000D;&#x000A;System.IO.FileNotFoundException: Could not load file or assembly &apos;WindowsBase, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35&apos; or one of its dependencies. The system cannot find the file specified.&#x000D;&#x000A;File name: &apos;WindowsBase, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35&apos;&#x000D;&#x000A;   at Microsoft.VisualStudio.Shell.ThreadHelper.SetUIThread()&#x000D;&#x000A;   at Microsoft.VisualStudio.Shell.ServiceProvider.CreateFromSetSite(IServiceProvider sp)&#x000D;&#x000A;   at Microsoft.VisualStudio.Shell.Package.Microsoft.VisualStudio.Shell.Interop.IVsPackage.SetSite(IServiceProvider sp)&#x000D;&#x000A;&#x000D;&#x000A;WRN: Assembly binding logging is turned OFF.&#x000D;&#x000A;To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.&#x000D;&#x000A;Note: There is some performance penalty associated with assembly bind failure logging.&#x000D;&#x000A;To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].&#x000D;&#x000A;</description>
    <guid>{DD7B74B5-C1F9-411A-B22E-5E711592BC6B}</guid>
    <hr>80070002</hr>
  </entry>

我是否需要异步查询服务包?如何禁用它我不相信我需要它。

我只需要C ++语言。

我几乎遵循了这篇文章中的所有建议:

Packages not loading after installing visual studio 2015 RTM

但基本的卸载和重新安装并不能解决问题。

我该怎么做才能解决这个问题?

0 个答案:

没有答案