Visual Studio 2015 locks DLL during debugging

后端 未结 4 930
鱼传尺愫
鱼传尺愫 2021-02-07 18:42

I have 3 C# projects A, B, and C. Both A and B reference C. The references to C from A and B are set to \"Copy Local\" implying that after C is built to C.dll (in the output dir

4条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2021-02-07 19:06

    I had the same problem and none of the other recommended solutions I came across while searching the interwebs worked for me. Finally after "repairing" Visual Studio 2015 Enterprise, I tried launching Visual Studio in safe mode: devenv.exe /SafeMode

    In safe mode I was able to finally build my solution, and when I started again without the switch, I was prepared to shut off extensions one by one until I found which one was the culprit. Luckily that was unnecessary and subsequent builds went off without a hitch.

提交回复
热议问题