Visual Studio 2017 bin\roslyn files locked during build

前端 未结 15 945
春和景丽
春和景丽 2021-01-30 03:53

I am running VS2017 version 26430.13 and every time I try to build a web project I get errors that access to the files in the bin\\roslyn is denied. Over a period of about 5 mi

15条回答
  •  傲寒
    傲寒 (楼主)
    2021-01-30 04:35

    Revert the Microsoft.CodeDom.Providers.DotNetCompilerPlatform package to V1.0.4

    This advice came from a comment on the developer community problem report https://developercommunity.visualstudio.com/solutions/79954/view.html.

    We were on v1.0.5 and experienced locked files frequently. After reverting the Microsoft.CodeDom.Providers.DotNetCompilerPlatform package to V1.0.4 we are no longer experiencing locked files.

提交回复
热议问题