error in visual studio, Access to the path is denied

前端 未结 12 1014
没有蜡笔的小新
没有蜡笔的小新 2020-12-30 06:31

I\'ve been having this problem for a while now. I created a brand new winforms c# application in Visual Studio. I can usually launch it in debug mode once without a problem.

12条回答
  •  时光取名叫无心
    2020-12-30 07:18

    I've been experiencing this problem now for the last 9 months, in VS2015 and VS2017 community editions. It appears that the compiler continues to live after the first compile for about 20 minutes, all the while holding locks on the files.

    My workaround is to kill the compiler, then rebuild. This always works without any apparent adverse side effects.

    You can kill the compiler from the Package Manager Console (or from PowerShell) with this code:

    Get-Process | where {$_.ProcessName -eq "VBCSCompiler"}  | foreach {Stop-Process -Id  $_.Id}
    

    Hope this helps you as it has me for the past couple of months.

提交回复
热议问题