Click here to Skip to main content
14,664,507 members
Rate this:
Please Sign up or sign in to vote.
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
Posted

Rate this:
Please Sign up or sign in to vote.

Solution 1

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).

—SA
   
Comments
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.
—SA
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.
—SA
Rate this:
Please Sign up or sign in to vote.

Solution 2

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, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100