Saturday 6 January 2018

bin\roslyn\ Access to the path is denied Visual Studio 2017

If you are getting following error with several dll in Visual studio 2017 at the time of build/re-build try given solution.

Severity Code Description Project File Line Suppression State Error Unable to copy file "\packages\Microsoft.Net.Compilers.2.2.0\tools\System.Reflection.Metadata.dll" to "bin\roslyn\System.Reflection.Metadata.dll". Access to the path 'bin\roslyn\System.Reflection.Metadata.dll' is denied.


Go to Task Manager and kill VBCSCompiler.exe