Access denied to roslyn folder when compiling MVC project in VS 2017

Viewed 5539

After a few debug sessions i can't compile the project anymore.

Compile gives several access errors like error below for some system assemblies, all related to roslyn bin folder:

error MSB3021: Unable to copy file ...\packages\Microsoft.Net.Compilers.2.2.0\tools\System.Collections.Immutable.dll" to "bin\roslyn\System.Collections.Immutable.dll". Access to the path 'bin\roslyn\System.Collections.Immutable.dll' is denied.

Restart to the VS doesn't solve. The project uses IIS express to run and there is no IIS express process running.

Only solution is reboot.

I am using VS2017, update 2

2 Answers
Related