Visual Studio 2017 bin \ roslyn文件在生成期间被锁定
我正在运行VS2017版本26430.13,每次尝试构建Web项目时,都会收到错误,拒绝访问bin \ roslyn中的文件。在大约5分钟的时间内,文件已解锁,我可以构建,但是5分钟的延迟是不可接受的。
这些是保持锁定的文件:
Microsoft.CodeAnalysis.CSharp.dll
Microsoft.CodeAnalysis.dll
Microsoft.CodeAnalysis.VisualBasic.dll
Microsoft.DiaSymReader.Native.amd64.dll
System.Collections.Immutable.dll
System.Diagnostics.FileVersionInfo.dll
System.IO.Compression.dll
System.IO.FileSystem.dll
System.IO.FileSystem.Primitives.dll
System.Reflection.Metadata.dll
System.Security.Cryptography.Algorithms.dl
System.Security.Cryptography.Primitives.dl
System.ValueTuple.dll
VBCS编译器
John S asked 2019-10-14T15:20:41Z
13个解决方案
109 votes
只需打开任务管理器并杀死VBCSCompiler.exe的所有实例即可。 您甚至不需要关闭Visual Studio。
Dean Swiatek