473,472 Members | 2,184 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

"loose binding" to dll's

Hi All,

It seems as if whenever you rebuild a .net class library you have to
rebuild /everything/ which references it. Is this so?

I am wondering what happens when you are only doing a minor change on
an assembly which does not change any interface at all, if it is not
then possible to let your other assemblies use the new one
automagically?

I have some dll's which are registered for COM by regasm.exe, they all
depend on another common dll which recently had a minor bug-fix. I had
to recompile everything to get it to use the new version of the dll. Is
this how it is supposed to be?

Regards
Pieter Breed

Jul 21 '05 #1
3 2215
Are you using static or auto-incrementing version numbers?

Andrew McNerlin

-----Original Message-----
From: pi**********@gmail.com [mailto:pi**********@gmail.com]
Posted At: 14 December 2004 15:23
Posted To: microsoft.public.dotnet.general
Conversation: "loose binding" to dll's
Subject: "loose binding" to dll's

Hi All,

It seems as if whenever you rebuild a .net class library you have to
rebuild /everything/ which references it. Is this so?

I am wondering what happens when you are only doing a minor change on
an assembly which does not change any interface at all, if it is not
then possible to let your other assemblies use the new one
automagically?

I have some dll's which are registered for COM by regasm.exe, they all
depend on another common dll which recently had a minor bug-fix. I had
to recompile everything to get it to use the new version of the dll. Is
this how it is supposed to be?

Regards
Pieter Breed

Jul 21 '05 #2
Hi,

Essentially we use static version numbers although we cannot deploy two
different files, but with the same file name and version number.
Does this affect the answer?

Regards
pieter

Jul 21 '05 #3
pi**********@gmail.com wrote:
Essentially we use static version numbers although we cannot deploy
two different files, but with the same file name and version number.
Does this affect the answer?


During development you can remove the strong name and then versioning does
not work (the file has to be in the app folder). Once you have finished
development you can add the strong name to the library and versioing will be
switched on.

Basically, when your assembly uses a library the full name of the library is
put in your assembly. If the library does not have a strong name (ie no
PublicKeyToken) then the only bit of the name Fusion can trust is the short
name, and so Fusion will pick up any library with that short name in your
application's folder. If you give the library a strong name, then Fusion
will use *all* of the library's name when it looks for the library and will
complain if there isn't a library with the *exact* name. You can use a
configuration file to change this behaviour.

More details here:

http://www.grimes.demon.co.uk/workshops/fusionWS.htm

Richard
--
www.richardgrimes.com
my email ev******@zicf.bet is encrypted with ROT13 (www.rot13.org)
Jul 21 '05 #4

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

Similar topics

1
by: Rob Hunter | last post by:
Is there an equivalent to Scheme's LET in Python? LET creates a new binding in the current environment. For example, here's some Scheme code: (let ((x 3)) (let ((f (lambda (arg) (* arg x))))...
2
by: Boniek | last post by:
Hi, How I can create property to binding with other objects. I want to create a data object which work as a DataTable. DataTable contains columns and dataTable is used to binding with a textBox...
3
by: Coldman | last post by:
which was saying this: "i have an asp:repeater - its values r initialezed w/ a .DataBind() call does it mean any changes user makes on the page will automaticly go to the database? quite...
3
by: pieter.breed | last post by:
Hi All, It seems as if whenever you rebuild a .net class library you have to rebuild /everything/ which references it. Is this so? I am wondering what happens when you are only doing a minor...
0
by: brian.mills | last post by:
I'm having trouble with a web service I've been using since I've change computers. The project was in source safe, and i've pulled it out, but I can now not change beetween static and dynamic on a...
2
by: Katit | last post by:
Hello, I searched archives and all pointing to use of VB6 objects from C# I want something different. 1. How can I build expandable platform? Let's say DLL's will have common set of methods...
2
by: barcrofter | last post by:
Im still confused with interfaces for COM objects. I have a Lotus word processor that I'm trying to automate via vb.net. The exe comes with an interface that I can add as a reference .. but.. I...
1
by: nelsonivan | last post by:
Hi, i'm trying to reference some objects using reflection and Late Binding accessing. The Object API to his methods it's easy to understand, and it's as "Object.Method" - aka....
0
by: Ronald S. Cook | last post by:
Hi, I'm wanting to iterate over a generic IList, but the code won't compile because the blue sqiggle line under: _DataRow("SecurityFunctionName") = _IList(i).SecurityFunctionName; sez...
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,...
1
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
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...
1
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...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
muto222
php
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.