升级到Visual Studio 2015后,Strange Build错误想要复制pagefile.sys

Add*_*dde 31 msbuild visual-studio-2015

在解决方案中构建MVC项目时出现此错误.在我的解决方案中根本不存在对这些文件的引用.

C:\Program Files (x86)\MSBuild\14.0\bin\Microsoft.Common.CurrentVersion.targets(4105,5): error MSB3030: Could not copy the file "D:\bootmgr" because it was not found.
1>C:\Program Files (x86)\MSBuild\14.0\bin\Microsoft.Common.CurrentVersion.targets(4105,5): error MSB3030: Could not copy the file "D:\BOOTNXT" because it was not found.
1>C:\Program Files (x86)\MSBuild\14.0\bin\Microsoft.Common.CurrentVersion.targets(4105,5): error MSB3030: Could not copy the file "D:\pagefile.sys" because it was not found.
1>C:\Program Files (x86)\MSBuild\14.0\bin\Microsoft.Common.CurrentVersion.targets(4105,5): error MSB3030: Could not copy the file "D:\swapfile.sys" because it was not found.
Run Code Online (Sandbox Code Playgroud)

我的同事可以毫无错误地建立.

Mar*_*oij 50

我遇到了同样的问题.

将DotNetCompilerPlatform升级到版本1.0.1时,问题就开始了.

要解决此问题,您可以使用NuGet包管理器降级到1.0.0版.

编辑:如果你卸载Microsoft.CodeDom.Providers.DotNetCompilerPlatform和Microsoft.Net.Compilers,然后安装DotNetCompilerPlatform(依赖于Microsoft.Net.Compilers包,所以它将自动安装)包再次错误消失为好所以它看起来.

仍然不确定在水下发生了什么,但我可以再次工作!


Gre*_*ods 5

我有同样的问题。我没有将DotNetCompilerPlatform升级到1.0.1。

我的解决方案是...

  • 退出Visual Studio
  • 删除解决方案的“ packages”文件夹
  • 重新启动VS。NuGet程序包管理器控制台窗口将提示您还原程序包。做吧
  • 建立您的解决方案