VS Visual Studio 项目引用显示黄色感叹号
问题

1.解决方案
1.1打开web项目的.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\SpecFlow.Plus.Excel.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\..\..\Assemblies\NuGet\SpecFlow.Plus.Excel.1.4.2\build\SpecFlow.Plus.Excel.targets'))" />
</Target>
1.2 如果黄色感叹号已取消,那么不用执行下面命令。否则需要执行。
开程序包管理控制台
vs->工具->NuGet包管理器->程序包管理控制台
Update-Package –reinstall
356



被折叠的 条评论
为什么被折叠?



