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

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
Nov 21 '05 #1
3 1709
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/cvsotAhsfbuTpmvujpotXjui/OFU".ToCharArray()
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**************@TK2MSFTNGP09.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

Nov 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

Nov 21 '05 #3

"Alex Stevens" <Al**********************@gcc.co.uk> wrote in message
news:Ox**************@TK2MSFTNGP09.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
AssemblyFileVersion.

David
Nov 21 '05 #4

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

Similar topics

4
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...
0
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. ...
3
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...
2
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...
0
by: Erik P. Vinther | last post by:
Hi This might be slightly OT, but I couldn't find a better NG for this question The question is regarding versioning of webservices. A webservice end point URL basically consists of a base...
1
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...
3
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...
1
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...
1
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...
1
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...
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:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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:
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
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
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
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...

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.