473,788 Members | 2,810 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

why vs.net always recompile the projects that are compiled?

Hi all,

I have a solution that includes several projects, and one of them depends on
all others. When I compile it in Visual Studio, it always recompile all the
other projects even though I havn't modified them at all. This is annoying
coz whenever I make a small change, I have to wait for the whole solution to
be compiled. Can anybody suggest why and any way to solve it?

p.s. whenever I press F5 for debug, VS will recompile the solution even if I
havn't modified anything at all. This is stupid...

Regards,
David
Nov 17 '05 #1
3 1780
"Dai Hao" <wh**********@h otmail.com> wrote in message
news:u%******** ********@tk2msf tngp13.phx.gbl. ..
Hi all,

I have a solution that includes several projects, and one of them depends on all others. When I compile it in Visual Studio, it always recompile all the other projects even though I havn't modified them at all. This is annoying
coz whenever I make a small change, I have to wait for the whole solution to be compiled. Can anybody suggest why and any way to solve it?

p.s. whenever I press F5 for debug, VS will recompile the solution even if I havn't modified anything at all. This is stupid...


I have the same question.It says it's compiling.

However, I/m not sure that the same compilers run, or that they run for the
same amount of time. For instance, perhaps the "csc" command, called when
the source file hasn't changed, simply checks for changes in the referenced
assemblies? Such a change can change the meaning of the program and require
a full compile, even if the source code didn't change.

This is new technology, and the only way to know what it's doing is either
to measure, or to ask politely.
--
John Saunders
Internet Engineer
jo***********@s urfcontrol.com
Nov 17 '05 #2
"Dai Hao" <wh**********@h otmail.com> wrote in message
news:OF******** ******@TK2MSFTN GP10.phx.gbl...
....
And if that is still acceptable, I still can't understand why it needs
to recompile (at least it says so, or whatever) when I debug without
modifying anything.


My point is that it needs to check the references your code uses, whether or
not your code actually changes.

I don't know if this is what it's doing while it says it's "Compiling" , but
I though I'd mention the references issue because it's new.
--
John Saunders
Internet Engineer
jo***********@s urfcontrol.com
Nov 17 '05 #3
May be this is what you want

Go to the Build Menu in VS.NET
Select Configuration Manger... from the Build Menu
For each Project Listed in your Solution you can check to Build or not to
build it All the way to the right it is a check box

"Dai Hao" <wh**********@h otmail.com> wrote in message
news:u%******** ********@tk2msf tngp13.phx.gbl. ..
Hi all,

I have a solution that includes several projects, and one of them depends on all others. When I compile it in Visual Studio, it always recompile all the other projects even though I havn't modified them at all. This is annoying
coz whenever I make a small change, I have to wait for the whole solution to be compiled. Can anybody suggest why and any way to solve it?

p.s. whenever I press F5 for debug, VS will recompile the solution even if I havn't modified anything at all. This is stupid...

Regards,
David

Nov 17 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
1652
by: JCBrinegar | last post by:
Here is the question: We have a .NET service that makes calls to (using interop) COM+ components compiled under VB6. If we make changes to a VB6 COM Component, without breaking compatability, will we have to recompile the .NET service? If so, is there any possible way that we can use the new VB6 COM Component without having to recompile the .NET service?
2
1733
by: Ed_P. | last post by:
Hello, Up to this point, I've been using C# to create simple applications that only use on Project to store Windows Forms and other Files. The project has been complied into an EXE. The exe file that is generated has balooned to about 500kb, which is something I don't want to happen! Although this has approach has been ok for the small applications I've built so far I'd like to move to using the "One Solution with Multiple Projects"...
3
1419
by: r.manders | last post by:
In visual Studio .Net when I start a program in the debugger, it always starts building all included project files. This only happens since a few weeks, before that it just started the program, unless a file in one of the projects was editted. Now it always builds (not rebuild) even when nothing has changed. Why is that ? is there some options that can be set ? Is this the result of some windows update ? Because my solution includes a...
2
1434
by: Pinnguy | last post by:
Hello, I have started to use managed C++ in VS 2003. I have several .NET class libraries written in MC++. I am finding the rebuild tendencies in VS to be very annoying. If I make a minor change to a C++ file (not header), it causes all depend projects to rebuild. I have not changed any classes or interfaces; I only make a minor change to some code in a cpp file. I would expect all depend files to rebuild if I change a class header...
1
2085
by: Jody Gelowitz | last post by:
Within ASP.NET, is it possible to use a single .vb file and have it shared (or accessed) between multiple projects without having that file being copied to each project folder? ie. C:\Projects\MyProject1 (project 1) C:\Projects\MyProject2 (project 2) C:\Projects\CommonFiles\MyCommonFile.vb (common file directly accessed and compiled from Project1 and Project2)
7
5631
by: bonk | last post by:
I have a c# project as part of a larger VS 2005 solution that always gets build optimized and I therefore can not evaluate any values while debugging through the code ("Cannot evaluate expression because the code of the current method is optimized."). This happens alltough the checkbock "optimize code" in the project settings is switched off. My question here is what are possible conditions that would make an assembly be build as optimized...
8
1984
by: Dave | last post by:
Does anyone have any idea why my 2005 solution is choosing to rebuild, everytime i execute any project within its space? There's nothing overly strange with the project assemblies within, a few class libraries, a couple of console apps, one custom setup project and one windows installer project. i've never seen this behavior before, and i've checked all the projects' settings that i can think of.
7
1531
by: Fabio Mastria | last post by:
Looks like a joke... : As I say in the subject... I create a javascript file, with this function: function IndexChanged(source){ alert("Hallo");
4
1144
by: Richard | last post by:
I want to know if there is a way it's possible to run csharp code from a .txt file without having to recompile it. thx in advance
0
9656
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9498
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10364
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10172
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10110
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8993
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7517
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5536
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3670
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.