473,325 Members | 2,816 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,325 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
Jul 21 '05 #1
3 1831
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

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**************@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
Jul 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. ...
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...
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: 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...
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: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.