Visual Studio 2017 bin\roslyn files locked during build

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

    Update the Microsoft.CodeDom.Providers.DotNetCompilerPlatform package to V1.0.6

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

    Just open task manager and kill any instances of VBCSCompiler.exe. You don't even need to close Visual Studio.

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

    In VS2017 & VS2019, this can happen when IIS Express is still running. Open the tray next to the clock, hover over the IIS Express icon running, right-click on the icon, click "Exit", confirm prompt, close active running worker processes. This can also be true when trying to publish your web project as well.

    0 讨论(0)
提交回复
热议问题