473,943 Members | 14,135 Online
Bytes | Software Development & Data Engineering Community
+ 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 2251
Are you using static or auto-incrementing version numbers?

Andrew McNerlin

-----Original Message-----
From: pi**********@gm ail.com [mailto:pi****** ****@gmail.com]
Posted At: 14 December 2004 15:23
Posted To: microsoft.publi c.dotnet.genera l
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**********@gm ail.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.b et 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
3873
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)))) (let ((x 4)) (f 5))))
2
325
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 etc. How I can create that object but I don't want any static properties in source code. I implemented IDataBinding in my object but when I'm binding my TextBox to this data object than my application raise exception which tell me that my object...
3
1275
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 unlikely how do u actually send the values to the db - any repeater specific article is more than welcome"
3
354
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 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?
0
3256
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 web service web reference. It also gives me an error on trying to update it saying it can't consume it. The Error "Custom tool error: Unable to import WebService/Schema. Unable to import binding 'SoapGeneralSoap' from namespace...
2
1706
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 (interface) and I will have main program using those DLL's. I want to achieve when I won't have to recompile main program and be able to add modules by dropping them into folder. Then
2
1649
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 cannot seem to generate an instance of it because (error message) the .tlb file only provides the interface. Thus I use CreateObject("etc") to define an object that picks up the exe. Question: is there any way or trick for binding the object...
1
2109
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. "Clientes.Existe"- So, to reference this object, it was simplier to me resolving this with reflection, and it was something like this:
0
1303
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 "Option Strict On disallows late binding" If I comment out the line and get to that place in the debugger, I can pull
0
10135
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
9970
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
11532
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
11123
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
11299
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
10662
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6308
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
4510
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3511
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.