Debug in .Net 2005

  • Thread starter Thread starter William E Voorhees
  • Start date Start date
W

William E Voorhees

I've just installed visual studio 2005. When I make code or form changes
and start debug (run program) my changes aren't seen unless I build the
program first. In 2003, I didn't have to build the program after every
change in code. Do I need to change a default setting in 2005?
 
Have you cheched Build > Configuration Manager ?

make sure to check the DLL you want to build

Tommaso

William E Voorhees ha scritto:
 
Example:
I have a Windows Form with a button named btnClose where btnClose.text =
"Close"
If I change the text of the button to "Close Form" and click - start debug -
the button text still reads "Close".
If I build the project, then click - start debug - the button reads "Close
Form"

I didn't have to build the project each time in ver. 2003. How can I set
ver. 2005 to recognize code changes without rebuilding the project after
each code change.

I did check the Configuration Manager and configuration for the project is
set to debug. I am trying to debug the project. I'm not sure what you mean
to check the DLL.
 
Are you talking about a dll or the startup project?
If a dll make sure it the startup project has a dependency on that dll.

Project > Project Dependencies

William E Voorhees ha scritto:
 
"William E Voorhees" <[email protected]> ha scritto nel messaggio

I have a Windows Form with a button named btnClose where btnClose.text =
"Close"
If I change the text of the button to "Close Form" and click - start
debug - the button text still reads "Close".
If I build the project, then click - start debug - the button reads "Close
Form"

I didn't have to build the project each time in ver. 2003. How can I set
ver. 2005 to recognize code changes without rebuilding the project after
each code change.

Menu Tools, Options, check the "show all settings", Debug, Edit and
Continue.
 
William said:
In 2003, I didn't have to build the program after every
change in code.

Yes, you /did/; the IDE probably just did it for you and you didn't
notice. There has to be a compiled IL program for the debugger to run
against.

Could it be that VS'2005 just isn't *saving* your changes before
building and running the project (presumably based on the source code on
disk)?

Tools > Options...
Projects and Solutions / Build and Run
Before Building = "Save all Changes"

(You may need to select "Show all settings" at the bottom of the dialog)

HTH,
Phill W.
 
Thanks,
Correcting those settings works.

Bill V

Phill W. said:
Yes, you /did/; the IDE probably just did it for you and you didn't
notice. There has to be a compiled IL program for the debugger to run
against.

Could it be that VS'2005 just isn't *saving* your changes before building
and running the project (presumably based on the source code on disk)?

Tools > Options...
Projects and Solutions / Build and Run
Before Building = "Save all Changes"

(You may need to select "Show all settings" at the bottom of the dialog)

HTH,
Phill W.
 
Back
Top