473,406 Members | 2,343 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

Managed C++ projects always rebuild

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 file,
but I do not expect **all depend projects** to rebuild if I make a minor
change to some cpp code.

I can live with this behavior for now, but once I have a large system, I can
see that this will become quite a burden.

Is there anyway to stop/work-around this behavior. Is it fixed in VS 2005?

Thanks
Nov 17 '05 #1
2 1419
On 10/26/05 8:36, in article
89**********************************@microsoft.com, "Pinnguy"
<pi*****@noemail.noemail> wrote:
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 file,
but I do not expect **all depend projects** to rebuild if I make a minor
change to some cpp code.

I can live with this behavior for now, but once I have a large system, I can
see that this will become quite a burden.

Is there anyway to stop/work-around this behavior. Is it fixed in VS 2005?

Thanks


Since managed code does not use headers (only managed C++ keeps the
concept), dependent projects consume resulting assemblies as source of
information on the primary project classes and interfaces. Therefore, if
primary assembly changes, dependent projects have to be compiled again in
order to verify if they still use correct types and method signatures.
Fortunately, compilation of managed code is way faster than native C++
compilation.
Thanks
Mikhail Arkhipov (Microsoft)
-- This post is provided 'AS IS' with no warranties and confers no rights

Nov 17 '05 #2


"Mikhail Arkhipov (Microsoft)" wrote:
On 10/26/05 8:36, in article
89**********************************@microsoft.com, "Pinnguy"
<pi*****@noemail.noemail> wrote:
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 file,
but I do not expect **all depend projects** to rebuild if I make a minor
change to some cpp code.

I can live with this behavior for now, but once I have a large system, I can
see that this will become quite a burden.

Is there anyway to stop/work-around this behavior. Is it fixed in VS 2005?

Thanks


Since managed code does not use headers (only managed C++ keeps the
concept), dependent projects consume resulting assemblies as source of
information on the primary project classes and interfaces. Therefore, if
primary assembly changes, dependent projects have to be compiled again in
order to verify if they still use correct types and method signatures.
Fortunately, compilation of managed code is way faster than native C++
compilation.
Thanks
Mikhail Arkhipov (Microsoft)
-- This post is provided 'AS IS' with no warranties and confers no rights


Thanks for your fast response. I suspected that this was the cause of the
behavoir.

To work around this, what if I where to adopt more of a COM approach where I
have a strong separation between interface and implementation.

I could declare my base interfaces in a separate assembly that only provided
the interface decls. Then I could remove the dependancies on the assemblies
that implement the interfaces. Dependant projects would reference the
assembly with the interface decls, not the assemblies that implement the
interfaces. This should stop the compile time dependencies, Correct?

Nov 17 '05 #3

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

Similar topics

1
by: Amos | last post by:
My Solution has three different projects: GUI, Api, Match. Project GUI includes a reference to Match.dll and Project Match includes a reference to Api.dll . Project Api doesn't include any...
5
by: Adam McKee | last post by:
We are using Visual Studio.NET 2003 in our project with .NET framework 1.1. One of our libraries is a mixed-mode dll assembly consisting of one managed C++ library, and several unmanaged C++...
3
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,...
3
by: Brian Henry | last post by:
This has worked perfectly for the past year now all the sudden it will not compile the installer project correctly. All our source code is in a Source Safe database so every system we do this on...
16
by: Robert W. | last post by:
I'm building a solution that has 1 component for the Desktop and 1 component for the Pocket PC. (Though this isn't a mobile question). I have a data library that will be shared on both platforms....
7
by: wmkew | last post by:
Hello everyone I'm encountering a R6002 Runtime error and several bugs when trying to generate a simple Managed C++ application with .NET 2003. The main problem seems to arise from linking with...
10
by: eswanson | last post by:
I have broken up my web site into smaller web site projects. When I look at the precompiled files, it always has the virtual directory in them ie: <preserve resultType="3"...
0
by: las | last post by:
....Working with VS .Net 2003... I have a solution that includes several projects: A core application, several plug-in driver DLL's and a class library. I want to make sure the Class Library...
3
by: Mike Hudson | last post by:
Performance/good practice wise which one is preffered. 1. Keep adding new classes/forms to an existing project. Or 2. Create a new project based on the requirement and add the reference. Which...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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...
0
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
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,...

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.