Reputation: 4766
I need some dlls in the bin/Debug folder of my project for it to actually run but every time if I don't include those dll as references in the project then Visual Studio is just automatically deleting them when I try to debug. How do I stop it from doing that?
Upvotes: 1
Views: 1780
Reputation: 488
I had this same problem. What I had was Project A -> Project B -> Project C, and Project C had the DLLs that were copying through (Build Action "Content" Copy Local Always) to Project A's bin debug. (-> indicates a reference)
However, when starting debugging, these would be deleted from Project A's bin/debug.
The Solution
Add a reference from Project A -> Project C
Upvotes: 0
Reputation: 18944
There are three ways you can deal with this. In order of preference, they are:
In general only a "Clean" or a "Rebuild" deletes things, so be sure you're not accidentally doing that yourself before you start debugging. "Build" and "Rebuild" are different.
Upvotes: 2