שתף באמצעות


Updating bin/debug and bin/release After Rebuild

Question

Tuesday, September 26, 2006 10:01 PM

I am developing a VB 2005 windows app.  When I make a change and then build the project it does not automaticallu update the stuff in bin/debug and bin/release folders.  I can manually copy everything from the project to the bin/debug folder and then hit F5 to test my changes.  There must be an option that I have not set properly but I cannot find it.  IS there a way to have the debug and release files updated whenever I (re)build the project?

Thanks.

All replies (3)

Tuesday, September 26, 2006 10:58 PM ✅Answered

That's pretty strange.  Project + properties, Compile tab, Build output path should be set to "bin\Debug" and "bin\Release" for the Release configuration.  If that checks out, Tools + Options, Projects and Solutions, Build and Run, set "MSBuild project build output verbosity" to Detailed.  Rebuild your project.  Look in the Output window for "Target CopyFilesToOutputDirectory:".  Post what you see there...


Wednesday, September 27, 2006 1:51 PM

Thanks for the reply ... Project > Properties > Compile > Build Output Path was set to bin\Release\ ... you say it should also be set to bin\Debug ... not sure how to add a second path name ... can I put a semicolon aftger the first and then enter the second?  The MSBuild project buil output verbosity" was set to minimal ... I changed it to Detailed.  I built the project and saw the following in the Output window (sorry for the formatting):

Target CopyFilesToOutputDirectory:

Task "Copy"

Copying file from "obj\Release\SWYwindows.exe" to "bin\Release\SWYwindows.exe".

Command:

copy /y "obj\Release\SWYwindows.exe" "bin\Release\SWYwindows.exe"

Done executing task "Copy".

Task "Message"

SWYwindows -> C:\Documents and Settings\SWY.STEVE\My Documents\SWY Stuff\VB and VB .Net\My VB 2005 Projects\SWYwindows\bin\Release\SWYwindows.exe

Done executing task "Message".

Task "Copy"

Done executing task "Copy".

Task "Copy" skipped, due to false condition; ('$(_SGenDllCreated)'=='true') was evaluated as ('false'=='true').

Task "Copy"

Copying file from "obj\Release\SWYwindows.pdb" to "bin\Release\SWYwindows.pdb".

Command:

copy /y "obj\Release\SWYwindows.pdb" "bin\Release\SWYwindows.pdb"

Done executing task "Copy".

Task "Copy"

Copying file from "obj\Release\SWYwindows.xml" to "bin\Release\SWYwindows.xml".

Command:

copy /y "obj\Release\SWYwindows.xml" "bin\Release\SWYwindows.xml"

Done executing task "Copy".

Task "Copy"

Done executing task "Copy".

Task "Copy"

Done executing task "Copy".

 


Wednesday, September 27, 2006 2:33 PM

Hmm, everything looks good.  Your build trace specifically states that it copied both the .exe and the .pdb from the obj\Release to the bin\Release folder.

Now, you are building the Release mode executable.  When you press F5, you'd be debugging the Debug mode executable.  Build + Configuration manager, change "Active solution configuration" to "Debug" and try again...