升级到Visual Studio 2015后,奇怪的生成错误想要复制pagefile.sys [英] Strange Build error after upgrading to Visual studio 2015 wants to copy pagefile.sys
问题描述
在解决方案中构建MVC项目时出现此错误.我的解决方案中根本没有对这些文件的引用.
I get this error when building an MVC project in a solution. No references to those files exists in my solution at all.
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.
我的同事可以毫无错误地构建.
My colleague can build with no errors.
推荐答案
我遇到了相同的问题.
I encountered the same issue.
当您将DotNetCompilerPlatform升级到版本 1.0.1 时,问题开始.
The problem starts when you upgrade the DotNetCompilerPlatform to version 1.0.1.
要变通解决此问题,您可以使用NuGet程序包管理器将其降级到版本 1.0.0 .
To work around this issue you can downgrade to version 1.0.0 using the NuGet package manager.
如果您卸载Microsoft.CodeDom.Providers.DotNetCompilerPlatform和Microsoft.Net.Compilers,然后安装DotNetCompilerPlatform(对Microsoft.Net.Compilers程序包具有依赖性,它将自动安装该程序包),该错误将再次消失,因此似乎.
If you uninstall Microsoft.CodeDom.Providers.DotNetCompilerPlatform AND Microsoft.Net.Compilers, and then install the DotNetCompilerPlatform (has a dependency on the Microsoft.Net.Compilers package so it will automatically install that) package again the error disappears for good so it seems.
仍然不确定在水下会发生什么,但我可以再次工作!
Still not sure what happens under water but I can work again!
这篇关于升级到Visual Studio 2015后,奇怪的生成错误想要复制pagefile.sys的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!