Strange Build error after upgrading to Visual studio 2015 wants to copy pagefile.sys

前端 未结 7 1380
名媛妹妹
名媛妹妹 2020-12-08 19:56

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.         


        
7条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-08 20:24

    As other's have mentioned it's the upgrade from version 1.0.0 to 1.0.1 of Microsoft.CodeDom.Providers.DotNetCompilerPlatform that causes this problem.

    It's possible to solve this without downgrading, see my explanation in this answer. To summarise, what solved it for me was removing all references to the offending libraries manually (simply removing them in VS was not enough) and then re-adding the latest versions.

    On further investigation this appears to be due to the 1.0.1 nuget package not clearing up all of the references to 1.0.0 in the csproj. Why this is causing it try and copy the pagefile however is anyone's guess.

提交回复
热议问题