相关疑难解决方法(0)

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

在解决方案中构建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)

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

msbuild visual-studio-2015

31
推荐指数
2
解决办法
1万
查看次数

无法复制文件“C:\pagefile.sys”,因为找不到

对于 Visual Studio 2017 中的解决方案,我一直遇到此编译时错误:

无法复制文件“C:\pagefile.sys”,因为找不到它。

这是在修复了DotNetCompilerPlatform在同一项目中找不到的先前警告之后开始的。发生这种情况是因为路径packages实际上比.csproj文件指示的位置高一级。我推测这是在我参与之前重组项目文件夹期间发生的。

无论如何,一旦修复,我清理了项目并运行了全部重建。第一次出现上述错误。

这个问题似乎类似于这些问题:

但是,我正在处理更新版本1.0.3DotNetCompilerPlatform. 因此,回退似乎不是一个好的选择,我不确定这些问题的答案有多少适用于这种情况。

c# msbuild compilation visual-studio visual-studio-2017

5
推荐指数
1
解决办法
1351
查看次数