|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Debug in .Net 2005I'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: Show quoteHide quote > 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? 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. <tommaso.gasta***@uniroma1.it> wrote in message Show quoteHide quote news:1156032256.351988.282380@i42g2000cwa.googlegroups.com... > Have you cheched Build > Configuration Manager ? > > make sure to check the DLL you want to build > > Tommaso > > William E Voorhees ha scritto: > >> 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? > 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: Show quoteHide quote > 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. > > > <tommaso.gasta***@uniroma1.it> wrote in message > news:1156032256.351988.282380@i42g2000cwa.googlegroups.com... > > Have you cheched Build > Configuration Manager ? > > > > make sure to check the DLL you want to build > > > > Tommaso > > > > William E Voorhees ha scritto: > > > >> 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? > >
Show quote
Hide quote
"William E Voorhees" <w**@cinci.rr.com> ha scritto nel messaggio Menu Tools, Options, check the "show all settings", Debug, Edit and news:%eQFg.66893$u11.45851@tornado.ohiordc.rr.com... > 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. > Continue. William E Voorhees wrote:
> In 2003, I didn't have to build the program after every Yes, you /did/; the IDE probably just did it for you and you didn't > change in code. 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 Show quoteHide quote "Phill W." <p-.-a-.-w-a-r-d@o-p-e-n-.-a-c-.-u-k> wrote in message news:ecesuv$osb$1@south.jnrs.ja.net... > William E Voorhees wrote: > >> 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. |
|||||||||||||||||||||||