这似乎是一个已知问题,我已经按照几个论坛的建议将我的 Microsoft.CodeDom.Providers.DotNetCompilerPlatform 降级为1.0.5而我的 Microsoft.Net.Compilers 降级为2.1.0 . 这使问题解决了几天,但现在,它已经无处可去 . 我尝试构建项目时收到以下错误:

D:\ VS 17 Projects \ ReminderNotes \ ReminderNotes \ bin \ roslyn \ csc.exe“ . 访问路径'D:\ VS 17 Projects \ ReminderNotes \ ReminderNotes \ bin \ roslyn \ csc.exe'被拒绝 .

和:

D:\ VS 17 Projects \ ReminderNotes \ ReminderNotes \ bin \ roslyn \ VBCSCompiler.exe“ . 访问路径'D:\ VS 17 Projects \ ReminderNotes \ ReminderNotes \ bin \ roslyn \ VBCSCompiler.exe'被拒绝 .

Screen shot of the error when i debug

有任何想法吗?