Click here to Skip to main content
15,064,093 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
When I build a solution in release mode in Visual Studio 2010 then the debug mode dlls are also copied to the release bin folder. What can I do so that I dont get the debug dlls in my release bin folder

There are not "Release mode" or "Debug mode". Those are just different configurations. You can always add your own configurations. "Debug" and "Release" are just names, they don't have to be related to debugging or any "modes".

Clean up everything, build again. Check up the parameters of the project related to the files, output and intermediate directories. It's easy to keep files related to different configurations using the macro reference $(Configuration). To see how it works, create a brand-new project and look at the project properties (and/or project file itself).

Shrya1 19-Feb-14 5:46am
after reading a bit more about this I realised that the debug version of the dll gets copied into my release bin folder. I think this should not happen ideally. Is there a way out
Sergey Alexandrovich Kryukov 19-Feb-14 10:35am
You should never add/modify anything in your obj and output directories; you can only remove them.
Shrya1 25-Feb-14 4:40am
I havent modified anything as yet. Just wanted to know if there was any setting in VS 2010 through which I could stop the debug version dlls to be built into my Release\bin folder
Well, I don't know what was wrong, but my advice should help.
sir, please check if they are added in to your project as References. If so, it will always copy from source to the "Debug" or "Release" folder.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900