Visual Studio 未能加载各种Package包的解决方案

 

打开Visual Studio 的时候,总提示未能加载相应的Package包,有时候还无法打开项目,各种错误提示,怎么解决呢?下面小编给大家带来了Visual Studio 未能加载各种Package包的解决方案,一起看看吧

问题:

打开Visual Studio 的时候,总提示未能加载相应的Package包,有时候还无法打开项目,各种提示

解决方案:

1.进入用户目录 C:\Users\用户名\AppData\Local\Microsoft\VisualStudio\VS版本(12.0)\ComponentModelCache 该目录 删除 Microsoft.VisualStudio.Default.cache

2.

从.csproj文件中删除以下代码解决了这个问题

<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
<PropertyGroup>
  <ErrorText>This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them.  For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.</ErrorText>
</PropertyGroup>
<Error Condition="!Exists('..\..\..\Assemblies\NuGet\SpecFlow.Plus.Excel.1.4.2\build\SpecFlo
发布了12 篇原创文章 · 获赞 7 · 访问量 4万+

猜你喜欢

转载自blog.csdn.net/rqf520/article/details/84303164