Visual Studio 2017 bin\roslyn files locked during build March 8, 2023 by Tarik Just open task manager and kill any instances of VBCSCompiler.exe. You don’t even need to close Visual Studio.