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.
I delete this line in .csproj file
And worked to me.
I use Visual Studio 2019, and I don't know why apears suddenly this error in my project.