升级到 Visual Studio 2015 后出现奇怪的构建错误想要复制 pagefile.sys [英] Strange Build error after upgrading to Visual studio 2015 wants to copy pagefile.sys

查看:21
本文介绍了升级到 Visual Studio 2015 后出现奇怪的构建错误想要复制 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)MSBuild14.0inMicrosoft.Common.CurrentVersion.targets(4105,5): error MSB3030: Could not copy the file "D:ootmgr" because it was not found.
1>C:Program Files (x86)MSBuild14.0inMicrosoft.Common.CurrentVersion.targets(4105,5): error MSB3030: Could not copy the file "D:BOOTNXT" because it was not found.
1>C:Program Files (x86)MSBuild14.0inMicrosoft.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)MSBuild14.0inMicrosoft.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.

推荐答案

我遇到了同样的问题.

当您将 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屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆