问题描述:
严重性 代码 说明 文件 项目 行 禁止显示状态
错误 The build restored NuGet packages. Build the project again to include these packages in the build. For more information, see http://go.microsoft.com/fwlink/?LinkID=317568. E:\wf_project\TEST\WeiFuXinSiLu\WeiFuXinSiLu.csproj WeiFuXinSiLu 1921
在 Visual Studio 2017 中构建代码时出现此错误。一开始我是清理代码并重新构建就可以运作,但是关闭之后再次启动项目又出现了这个错误。
于是找到了在stackoverflow找到了相关问题
https://stackoverflow.com/questions/63564405/the-build-restored-nuget-packages-build-the-project-again-to-include-these-pack
解决方案:
其中比较靠谱的就是在程序包管理器控制台中输入命令:
Update-Package -reinstall
进行更新“Microsoft.Bcl.Build”nuget 包