Home All Groups Group Topic Archive Search About
Author
19 Aug 2006 8:38 PM
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?

Author
20 Aug 2006 12:04 AM
tommaso.gastaldi
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?
Author
20 Aug 2006 3:00 AM
William E Voorhees
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?
>
Author
20 Aug 2006 7:40 AM
tommaso.gastaldi
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?
> >
Author
20 Aug 2006 10:44 AM
Fabio
Show quote Hide quote
"William E Voorhees" <w**@cinci.rr.com> ha scritto nel messaggio
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.
>

Menu Tools, Options, check the "show all settings", Debug, Edit and
Continue.

--

Free .Net Reporting Tool - http://www.neodatatype.net
Author
22 Aug 2006 12:22 PM
Phill W.
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.
Author
24 Aug 2006 2:19 AM
William E Voorhees
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.