Visual Studio 2017 bin\roslyn files locked during build

前端 未结 15 963
春和景丽
春和景丽 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:19

    Install Microsoft.CodeDom.Providers.DotNetCompilerPlatform.BinFix nuget It fixed the issue for me

    0 讨论(0)
  • 2021-01-30 04:21

    for me updating the nuget package...

    Microsoft.Net.Compilers

    to the latest at the time of this post 2.7.0 fixed this for me. it was version 1.3.2

    0 讨论(0)
  • Before you try anything drastic, restart your computer

    0 讨论(0)
  • 2021-01-30 04:23

    I have VS 2017 Enterprise and for me the issue was resolved by this:

    1. Downgraded Microsoft.Net.Compilers from 2.3.1 to 2.3.0
    2. Downgraded Microsoft.CodeDom.Providers.DotNetCompilerPlatform from 1.0.5 to 1.0.4.
    0 讨论(0)
  • 2021-01-30 04:26

    I was having the same issue in MVC 5. I just opened Nuget Package Manager, searched and updated the following:

    Microsoft.CodeDom.Providers.DotNetCompilerPlatform
    
    0 讨论(0)
  • 2021-01-30 04:32

    UPDATE the Microsoft.CodeDom.Providers.DotNetCompilerPlatform package to V1.0.7

    • Find Microsoft.CodeDom.Providers.DotNetCompilerPlatform from NuGet Uninstall Old version
      Install V1.0.7 or latest
    0 讨论(0)
提交回复
热议问题