Error MSB3027: Could not copy “C:\pagefile.sys” to “bin\roslyn\pagefile.sys”. Exceeded retry count of 10. Failed

后端 未结 8 1793
既然无缘
既然无缘 2020-12-14 06:54

I am consistently getting this error with VS 2013:

Could not copy \"C:\\pagefile.sys\" to \"bin\\roslyn\\pagefile.sys\". Exceeded retry count of 10.

8条回答
  •  佛祖请我去吃肉
    2020-12-14 07:48

    As indicated in this answer from Pramod's comment the problem stems from the Microsoft.CodeDom.Providers.DotNetCompilerPlatform nuget package, specifically upgrading from version 1.0.0 to 1.0.1.

    For me however, downgrading using Visual Studio caused further build errors. To solve the problem I had to manually edit my csproj and packages.config files, removing all references to Microsoft.Net.Compilers and Microsoft.CodeDom.Providers.DotNetCompilerPlatform.

    Specifically, this meant:

    • Removing the relevant sections for both versions of both libraries
    • Removing the
提交回复
热议问题