Click here to Skip to main content
15,867,686 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hey guys this might be a stupid question but I have been banging my head here for about 2 hrs without any luck. Ok my problem is that when I build my application in Debug mode it all works just fine but when I switch to Release mode to do a build the soultion won't complie. It turns out that some of the internal project references don't switch to the bin\Release folder when I switch configurations. How do I make it use the correct DLL's.

Thanks in advance guys.
Posted

1 solution

Go to Project -> Properties and check the settings in your Release configuration are setup the same as the Debug one.
 
Share this answer
 
Comments
frostcox 7-Mar-14 6:36am    
Hi thanks for you reply, I have checked through all the settings and they are all the same, the only thing I noticed is in the References tab when I switch between Debug and Release the patch only change for some DLLs and not others
Richard MacCutchan 7-Mar-14 7:04am    
OK, so you need to fix the ones that are missing. Given the fact that all you have told us is that your project will not compile it is impossible to be more specific.
frostcox 7-Mar-14 7:15am    
Its gives out that it is trying to reference two different versions of the same DLL's bacause studio hasn't automatically changed the path from the Debug folder to the Release folder.
frostcox 7-Mar-14 7:47am    
Hey found the issue, it was because when I added the reference I pointed at the bin/debug folder rather than just add a reference to the actual project. Thanks for your help.

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