Visual Studio 2015 locks DLL during debugging

后端 未结 4 937
鱼传尺愫
鱼传尺愫 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:07

    I had the same problem. I changed my VS2015 settings and it seems the problem is gone:

    • disabled Options\Debugging\Edit and continue
    • -Options\Sourcecodemanagement from TFS to none-
    • -disabled Options\Debugging\Diagnostictools while debugging-

    Not sure wich one caused the locking, but i suspect the diagnostictools wich I did not have in VS2013. (The settings names I translated from German to english, don't know if it is exactly how they are called in english VS version.)

    Edit: As researched by Shea it was the Edit-And-Continue feature that locked the DLL.

提交回复
热议问题