【发布时间】:2017-06-21 17:09:10
【问题描述】:
我正在运行 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
- VBCSCompiler.exe
【问题讨论】:
-
什么类型的项目?
-
如上所述的“网络项目”。特别是一个 ASP.Net MVC 项目。
-
什么版本的 ASP.Net? .Net 核心?运行了吗?
-
ASP.Net MVC 5。我猜它与在 VS2017 某处运行的分析器有关。
-
停止或删除反恶意软件违反了公司政策。