c# - error MSB3027: Could not copy "C:\pagefile.sys" to "bin\roslyn\pagefile.sys". Exceeded retry count of 10. Failed -


every time getting error vs 2013

could not copy "c:\pagefile.sys" "bin\roslyn\pagefile.sys". exceeded retry count of 10. failed. unable copy file "c:\pagefile.sys" "bin\roslyn\pagefile.sys". process cannot access file

please me.

as indicated in this answer pramod's comment problem stems microsoft.codedom.providers.dotnetcompilerplatform nuget package, upgrading version 1.0.0 1.0.1.

for me however, downgrading using visual studio caused further build errors. solve problem had manually edit csproj , packages.config files, removing references microsoft.net.compilers , microsoft.codedom.providers.dotnetcompilerplatform.

specifically, meant:

  • removing relevant <import project="... sections versions of both libraries (usually towards beginning of csproj)
  • removing <reference include="... sections both versions of both libraries
  • removing <error condition="!exists(... sections both versions of both libraries within ensurenugetpackagebuildimports target section
  • removing microsoft.codedom.providers.dotnetcompilerplatform , microsoft.net.compilers packages packages.config.

i able manage projects nuget packages in vs , (in order) :

  • add microsoft.net.compilers version 1.2.2
  • add microsoft.codedom.providers.dotnetcompilerplatform version 1.0.1

this solved pagefile build error, , runtime error prompted me try , upgrade in first place.


Comments

Popular posts from this blog

PySide and Qt Properties: Connecting signals from Python to QML -

c# - DevExpress.Wpf.Grid.InfiniteGridSizeException was unhandled -

scala - 'wrong top statement declaration' when using slick in IntelliJ -