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.
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.