all groups > dotnet faqs > march 2004 >
You're in the

dotnet faqs

group:

build only what is needed


build only what is needed interuser NO[at]SPAM hotmail.com
3/23/2004 3:08:57 AM
dotnet faqs: Hi
I use .net 2002 framework 1.0
I have a huge .net solution consisting of many projects. Depending on
the case, each time I change different project(s)
It is extremely time consuming to build all projects every time I want
to debug. Isn't there a switch somewhere to tell .net to build only
Re: build only what is needed interuser NO[at]SPAM hotmail.com
3/23/2004 7:02:20 AM
"Build Solution" builds everything.
Isn't there a switch somewhere to tell .net to build only what has changed?

[quoted text, click to view]
Re: build only what is needed Andreas Håkansson
3/23/2004 12:51:55 PM
Hello,

If you use "Build Solution" (CTRL+SHIFT+B) from the Build menu, then
only projects which has been altered will be recompiled. I do belive that
this
is the case then you start a project (F5) as well. You have to explicitly
select
Rebuild Solution to recompile projects which has not been altered.

Hope this helps,

//Andreas

<interuser@hotmail.com> skrev i meddelandet
news:a840cbfe.0403230308.2465db7b@posting.google.com...
[quoted text, click to view]

Re: build only what is needed Hans Kesting
3/23/2004 5:25:27 PM

[quoted text, click to view]
changed?

The default is to rebuild only what needs to be built. This includes
projects that
have changed, but also projects that depend on (=reference) those changed
projects and probably also projects that depend on those (etc).

The reason is that a change in a "lower" project could affect the higher
ones,
so that needs to be checked by recompiling.

So, if you only change a top-level project, only that needs to be
recompiled.
If, on the other hand, you change a deep-down library project that is used
everywhere, then everything will be recompiled.

Hans Kesting

Re: build only what is needed interuser NO[at]SPAM hotmail.com
3/24/2004 12:11:42 PM
[quoted text, click to view]

If .net were clever enough, it would rebuild the dependent projects
only when required: eg when the public method declarations change (and
not the content)
Re: build only what is needed Michael Bray
3/24/2004 12:21:41 PM
[quoted text, click to view]

What if the public methods don't change, but the private functions that the
public methods use do? You still need to recompile!

Re: build only what is needed interuser NO[at]SPAM hotmail.com
3/25/2004 2:34:30 AM
[quoted text, click to view]

That's what I am saying! COmpile only what is needed, and not the
Re: build only what is needed Jon Skeet [C# MVP]
3/25/2004 8:24:11 AM
[quoted text, click to view]

You shouldn't need to. The IL for the calling code should be exactly
the same. (I seem to remember there's some hinting information for
finding members, and *that* may change, but it would be reasonable
enough to only rebuild for that purpose in release builds.)

--
Jon Skeet - <skeet@pobox.com>
http://www.pobox.com/~skeet
AddThis Social Bookmark Button