473,396 Members | 1,789 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,396 software developers and data experts.

Should be simple Q

I have an app that references 2 dlls that I have written, call them A.dll
and B.dll. In addition A.dll also references B.dll and all works peachy. The
problem is that A.dll will rarely be changed whereas the app and B.dll will
change on a regular basis. Is there a way to avoid compiling A every time I
compile B?

Thanks,
Michael

Jul 24 '06 #1
2 1009
Pin the assembly version numbers? As long as the key (assuming strong
named), version, name and culture of each match what is expected, then the
app should be happy to use the old version of A, and A should be happy to
use the new version of B.

If GACd you can also use policy to forward the versions, but that can get
very complex and messy. You can always just use version numbers in the
AssemblyFileVersion (IIRC), which means you can pin the assembly version
(e.g. 1.2.0.0) while the file-version can change to suit.

Marc

"Michael C" <no****@nospam.comwrote in message
news:eD****************@TK2MSFTNGP03.phx.gbl...
>I have an app that references 2 dlls that I have written, call them A.dll
and B.dll. In addition A.dll also references B.dll and all works peachy.
The problem is that A.dll will rarely be changed whereas the app and B.dll
will change on a regular basis. Is there a way to avoid compiling A every
time I compile B?

Thanks,
Michael

Jul 24 '06 #2
"Marc Gravell" <ma**********@gmail.comwrote in message
news:OJ**************@TK2MSFTNGP05.phx.gbl...
Pin the assembly version numbers? As long as the key (assuming strong
named), version, name and culture of each match what is expected, then the
app should be happy to use the old version of A, and A should be happy to
use the new version of B.
Hi Marc, thanks for the reply. I just gave it a try using 3 test projects.
It all works fine by standard anyway with the only side effect I can notice
that it gives a warning when compiled. This on it's own is probably an
acceptable solution as I can put up with the warnings during developement
and then compile everything before release. In this regard it's probably
good even to leave it as it is so i've got the warnings to reming me.

But I can help tinkering .... I've given B a strong name, compiled it and
re-added B to both A and the exe. From the 4 things you mentioned, strong
name, name and culture remain the same but I would like the version to
change which is still causing the warning to appear. Is there any way to
resolve that but allow the version to still increment?
If GACd you can also use policy to forward the versions, but that can get
very complex and messy. You can always just use version numbers in the
AssemblyFileVersion (IIRC), which means you can pin the assembly version
(e.g. 1.2.0.0) while the file-version can change to suit.
All of the dlls are not in the GAC.

Michael
Jul 25 '06 #3

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

Similar topics

303
by: mike420 | last post by:
In the context of LATEX, some Pythonista asked what the big successes of Lisp were. I think there were at least three *big* successes. a. orbitz.com web site uses Lisp for algorithms, etc. b....
22
by: Alexander Schmolck | last post by:
Two smallish things that have been bugging me; I'm not sure whether they're actually broken or not, but anyway here it goes: 1. ``os.system`` (and co): Shouldn't ``os.system``'s signature really...
124
by: 43 | last post by:
how come m$Office isn't written in .net? how come Open Office isn't written in j2ee? how come dbms systems aren't written in either? how come browsers aren't written in either? how come...
36
by: Jack Hughes | last post by:
This argument has come up two or three times lately. We have a web standards document at our company that say "Use valid HTML 4; We don't recommend switching to DIV-based CSS-P for layout just...
5
by: AES/newspost | last post by:
I've just re-scanned most of the 60+ posts in the "Frames are Evil" thread, and my question, as the admittedly and permanently amateur creator and maintainer of a simple site, is: Using only...
175
by: Ken Brady | last post by:
I'm on a team building some class libraries to be used by many other projects. Some members of our team insist that "All public methods should be virtual" just in case "anything needs to be...
21
by: TAM | last post by:
Hi, I read that ASP.NET uses VB.NET instead of VBScript. I also read that ASP.NET is a subset of VB.NET. So if I learn VB.NET first then do I have the knowledge for programming ASP.NET...
10
by: Solo.Wolve | last post by:
Well,I read <c primer plusbefore,and I just got a primary conclusion about c. Can somebody show me some books to read and something to do ? I study c myself.btw,I am not a student, Thanks.
8
by: FAQ server | last post by:
----------------------------------------------------------------------- FAQ Topic - When should I use eval? ----------------------------------------------------------------------- The ` eval() `...
4
by: sinbad | last post by:
how can i write a program, which should accept input as NAME of a variable in the program and print it's value.Is this possible. for example. int main () { int x,y,z; x = 10; y = 20; z = 30;
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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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?
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
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,...
0
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,...
0
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...
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.