473,770 Members | 1,757 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

DLL Versioning - can it be independent????

Hi All,

I'm trying to get around a problem that I'm having with versioning.

I have a DLL called Control.dll and it is at version 1.0.
I choose to inherit from one of the controls, and build my own control -
MyControl.dll and it is at version 1.0 also.

MyControl.dll is then used in MyApplication project.
Control.dll is also used in My Application project.

The original control is then modified very slightly and is incremented to
version 1.1.
Now I have to copy in the new reference to MyControl project, and recompile
the MyControl.dll and then copy them both to the application directory and
re-reference them, haveing deleted the old dll files.

This becomes very complicated, when you have other dll's which reference the
original Control.dll aswell, like the application!
Is there anyway that you can force a DLL (in this case MyControl.dll) to use
whatever version it finds in it's execution directory???

Thanks

Alex
Jul 21 '05 #1
3 1863
in the config file, set the version to 1.0.0.0 instead of 1.0.* etc

--
OHM ( Terry Burns ) * Use the following to email me *

Dim ch() As Char = "ufssz/cvsotAhsfbuTpmv ujpotXjui/OFU".ToCharArra y()
For i As Int32 = 0 To ch.Length - 1
ch(i) = Convert.ToChar( Convert.ToInt16 (ch(i)) - 1)
Next
Process.Start(" mailto:" & New String(ch))
--
"Alex Stevens" <Al************ **********@gcc. co.uk> wrote in message
news:Ox******** ******@TK2MSFTN GP09.phx.gbl...
Hi All,

I'm trying to get around a problem that I'm having with versioning.

I have a DLL called Control.dll and it is at version 1.0.
I choose to inherit from one of the controls, and build my own control -
MyControl.dll and it is at version 1.0 also.

MyControl.dll is then used in MyApplication project.
Control.dll is also used in My Application project.

The original control is then modified very slightly and is incremented to
version 1.1.
Now I have to copy in the new reference to MyControl project, and
recompile
the MyControl.dll and then copy them both to the application directory and
re-reference them, haveing deleted the old dll files.

This becomes very complicated, when you have other dll's which reference
the
original Control.dll aswell, like the application!
Is there anyway that you can force a DLL (in this case MyControl.dll) to
use
whatever version it finds in it's execution directory???

Thanks

Alex

Jul 21 '05 #2
Rob
Is the project MyControl.dll contained in your solution? The Visual Studio
IDE will keep everything synchronized. Since MyControl is part of the
solution it will recompile it recompile as needed and since it is part of the
solution any other project that references it will automatically "point" to
the correct version.

Try to keep all your projects that relate to a solution in the same
"Solution" and you should have few if any versioning issues.

HTH
Rob

"Alex Stevens" wrote:
Hi All,

I'm trying to get around a problem that I'm having with versioning.

I have a DLL called Control.dll and it is at version 1.0.
I choose to inherit from one of the controls, and build my own control -
MyControl.dll and it is at version 1.0 also.

MyControl.dll is then used in MyApplication project.
Control.dll is also used in My Application project.

The original control is then modified very slightly and is incremented to
version 1.1.
Now I have to copy in the new reference to MyControl project, and recompile
the MyControl.dll and then copy them both to the application directory and
re-reference them, haveing deleted the old dll files.

This becomes very complicated, when you have other dll's which reference the
original Control.dll aswell, like the application!
Is there anyway that you can force a DLL (in this case MyControl.dll) to use
whatever version it finds in it's execution directory???

Thanks

Alex

Jul 21 '05 #3

"Alex Stevens" <Al************ **********@gcc. co.uk> wrote in message
news:Ox******** ******@TK2MSFTN GP09.phx.gbl...
Hi All,

I'm trying to get around a problem that I'm having with versioning.

I have a DLL called Control.dll and it is at version 1.0.
I choose to inherit from one of the controls, and build my own control -
MyControl.dll and it is at version 1.0 also.

MyControl.dll is then used in MyApplication project.
Control.dll is also used in My Application project.

The original control is then modified very slightly and is incremented to
version 1.1.
Now I have to copy in the new reference to MyControl project, and
recompile
the MyControl.dll and then copy them both to the application directory and
re-reference them, haveing deleted the old dll files.

This becomes very complicated, when you have other dll's which reference
the
original Control.dll aswell, like the application!
Is there anyway that you can force a DLL (in this case MyControl.dll) to
use
whatever version it finds in it's execution directory???


You are incrementing the AssemblyVersion . The AssemblyVersion is not for
keeping track of your changes and fixes. The AssemblyVersion is _only_ for
controling assembly binding behavior. You increment the AssemblyVersion
_only_ when you want to force referencing assemblies to use the old version
side-by-side or recompile against the new version.

For tracking your changes independant of the binding behavior use
AssemblyFileVer sion.

David
Jul 21 '05 #4

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

Similar topics

4
2353
by: Sandman | last post by:
Hello - I suppose this group could be suitable for my questions... I am interested in a versioning system that works good for web authoring. I don't know what differences web development might pose oon a versioning system, but I have a feeling that it might. First off - I already have a web project up and running with over 160 000 lines of code. It is spread over a large hierarchy that mixes PHP documents with images. The hierachy also...
0
1338
by: Jim Kerr | last post by:
Does makepy always respect versioning of interfaces? It appears as though makepy correctly handles versioning of objects you obtain directly, but not for objects you get via a function call. Here's a simple example to illustrate the point. I created the C++-based server for this example by pilfering some code in Andrew Troelsen's book on COM and ATL. car = Dispatch("ScriptibleCoCar.DualCoCar") person =...
2
528
by: PatrickSA | last post by:
Hi, Am new to web services, so apologies for the basic nature of the question - and apologies in advance if this is the wrong newsgroup. We're building a new web service and I'm looking around for documentation on a number of issues, including versioning of web service interfaces... I've spent the last few hours looking through books, Google, MSDN and surprisingly I have found little or nothing that explains/shows how to practically...
1
2119
by: MrNobody | last post by:
Is there any way to have .NET IDE to handle versioning for your application? If for example you want a certain build number to increment every time you build your project? Would need this version to be accessed by the application itself.
3
1739
by: Alex Stevens | last post by:
Hi All, I'm trying to get around a problem that I'm having with versioning. I have a DLL called Control.dll and it is at version 1.0. I choose to inherit from one of the controls, and build my own control - MyControl.dll and it is at version 1.0 also. MyControl.dll is then used in MyApplication project. Control.dll is also used in My Application project.
3
3753
by: Modica82 | last post by:
Hi all, Does anyone have any views/information on the best way to version web services. I am writing a proposal on how the company should handle versioning of its web services and would like some of your views. I dont have much at the moment, i am going to gather some research but as i said, any info would be greatly appreciated. Regards,
1
1662
by: zacks | last post by:
Am using VB.NET 2005. I have a solution that has four projects. Two projects are standard windows applications. One is a class library that is shared by the two windows application projects, it is primarily used to serialize/deserialize an XML configuration file.. The third project is a standard Setup project that installs the two windows applications. My question is regarding versioning of the solution. I would like for the entire...
1
2105
by: betbubble | last post by:
I replicate (transactional replication) my data entry database to a read-only database. Both are SQL 2000+SP4. The web server reads the read-only database. At times, there will be lots of changes in the data entry database, thus lots of replications to the read-only database. I am concerned that the replication may lock the data in the read-only database, causing slow response to the web server. I would like to use row versioning so that...
1
2259
by: Coaster | last post by:
orig ref here http://groups.google.com/group/microsoft.public.dotnet.framework.aspnet/browse_thread/thread/ff29cc370678911d/c0db5b7e3da283b9?lnk=st&q=gac+assembly+new+version&rnum=7#c0db5b7e3da283b9 I have pasted the part I'm interested in below. My company doesn't use versioning or the gac and I'd like to. We're on vs.net 2005 & .net 2., is this still true or has it changed since then? thanks That article is not entirely accurate. ...
0
9617
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
9454
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
10257
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
10099
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...
0
9904
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
8931
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...
0
5354
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4007
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 we have to send another system
3
2849
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.