Hi all,
First i have to state this is my first entry ever in a forum. So
please be forgiving...
I am a newbe to dotnet versioning...
The Situation is the following: Our application is using an external
managed .dll. Whos version is changing from time to time. The
interface is not changing at all. As i have included this dll in my
project i have to rebuild my application everytime the version number
is augmenting : 1.0.x.y. The major and minor build version do not
change.
using .net compact framework 1.1
Isnt it possible to state a policy that if x and y are changing the
clr still accepts these version numbers without recompiling my
application?
For any help thanks in advance
Ben 6 3543
The reason you have to recompile is that when you compile, you are going and
getting a copy of the .dll and bringing it locally into your application.
This only happens when you compile so, if you want the newer assembly, you
have to recompile.
Now, if the assembly were to become a shared assembly that is registered
into the GAC, then all you'd need to do is update the GAC with the new
assembly and your application would continue to run without any work needed.
-Scott
"Ben" <be************ *@gmail.comwrot e in message
news:11******** **************@ l77g2000hsb.goo glegroups.com.. .
Hi all,
First i have to state this is my first entry ever in a forum. So
please be forgiving...
I am a newbe to dotnet versioning...
The Situation is the following: Our application is using an external
managed .dll. Whos version is changing from time to time. The
interface is not changing at all. As i have included this dll in my
project i have to rebuild my application everytime the version number
is augmenting : 1.0.x.y. The major and minor build version do not
change.
using .net compact framework 1.1
Isnt it possible to state a policy that if x and y are changing the
clr still accepts these version numbers without recompiling my
application?
For any help thanks in advance
Ben
On Mon, 26 Mar 2007 14:44:15 -0400, Scott M. wrote:
The reason you have to recompile is that when you compile, you are going and
getting a copy of the .dll and bringing it locally into your application.
This only happens when you compile so, if you want the newer assembly, you
have to recompile.
Now, if the assembly were to become a shared assembly that is registered
into the GAC, then all you'd need to do is update the GAC with the new
assembly and your application would continue to run without any work needed.
-Scott
"Ben" <be************ *@gmail.comwrot e in message
news:11******** **************@ l77g2000hsb.goo glegroups.com.. .
Really? I beg to differ. If this were the case it would re-introduce DLL
hell.
However there is a workaround if you don't want to recompile you can use a
feature called binding redirection to well ... redirect calls for one
version to another.
You can read on this here http://msdn.microsoft.com/library/de...ngredirect.asp
--
Bits.Bytes http://bytes.thinkersroom.com
How so? If the version number is not changing and it is a shared assembly
then no copy is being made locally and the app uses the shared assembly.
"Rad [Visual C# MVP]" <no****@nospam. comwrote in message
news:1j******** ********@thinke rsroom.com...
On Mon, 26 Mar 2007 14:44:15 -0400, Scott M. wrote:
>The reason you have to recompile is that when you compile, you are going and getting a copy of the .dll and bringing it locally into your application. This only happens when you compile so, if you want the newer assembly, you have to recompile.
Now, if the assembly were to become a shared assembly that is registered into the GAC, then all you'd need to do is update the GAC with the new assembly and your application would continue to run without any work needed.
-Scott
"Ben" <be************ *@gmail.comwrot e in message news:11******* *************** @l77g2000hsb.go oglegroups.com. ..
Really? I beg to differ. If this were the case it would re-introduce DLL
hell.
However there is a workaround if you don't want to recompile you can use a
feature called binding redirection to well ... redirect calls for one
version to another.
You can read on this here http://msdn.microsoft.com/library/de...ngredirect.asp
--
Bits.Bytes http://bytes.thinkersroom.com
On Mon, 26 Mar 2007 16:00:56 -0400, Scott M. wrote:
How so? If the version number is not changing and it is a shared assembly
then no copy is being made locally and the app uses the shared assembly.
If the version number changes (as I think the OP says) I believe it is a
valid assumption on the part of the CLR that something may have changed in
the DLL, whether or not this may actually be the case, and therefore
putting it into the GAC will not solve the ambiguity
--
Bits.Bytes http://bytes.thinkersroom.com
My bad, my first read of the OP came up with the version number NOT
changing.
"Rad [Visual C# MVP]" <no****@nospam. comwrote in message
news:v4******** ******@thinkers room.com...
On Mon, 26 Mar 2007 16:00:56 -0400, Scott M. wrote:
>How so? If the version number is not changing and it is a shared assembly then no copy is being made locally and the app uses the shared assembly.
If the version number changes (as I think the OP says) I believe it is a
valid assumption on the part of the CLR that something may have changed in
the DLL, whether or not this may actually be the case, and therefore
putting it into the GAC will not solve the ambiguity
--
Bits.Bytes http://bytes.thinkersroom.com
Did you try creating an interface for your external dll, and then try to
access it. I am talking about accessing an implementation through an
interface.
An even better solution would be to use that external dll as a web-service.
That way you won't have to rebuild your solution, so long as your interface
does not change.
Thanks,
--
Sashidhar Kokku
ikaSystems Corp
"Ben" wrote:
Hi all,
First i have to state this is my first entry ever in a forum. So
please be forgiving...
I am a newbe to dotnet versioning...
The Situation is the following: Our application is using an external
managed .dll. Whos version is changing from time to time. The
interface is not changing at all. As i have included this dll in my
project i have to rebuild my application everytime the version number
is augmenting : 1.0.x.y. The major and minor build version do not
change.
using .net compact framework 1.1
Isnt it possible to state a policy that if x and y are changing the
clr still accepts these version numbers without recompiling my
application?
For any help thanks in advance
Ben
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Ken Durden |
last post by:
I'm working on a client-server application where the client is
controlling two devices (aka servers) which both implement the same
interface contract.
We have a set of about 4 assemblies which specify the interfaces and
the data types which flow through the interfaces. Initially, we
thought this would be enough for the client to talk with the server.
In general it is, but when an exception is generated by the server it
fails to...
|
by: Simon Wallis |
last post by:
I know the general purpose for the GAC is to share a component among many applications. But even when you add something to the GAC, you still have to manually create a reference to the DLL in your project (right?). So what have I gained by adding it to the GAC?
|
by: Henrik Skak Pedersen |
last post by:
Hello,
I have a class which is beeing serialized/deserialized using the
BinaryFormatter class. That has been working with no problems until I signed
all my assemblies. Now I get a SerializationException when I try to
Deserialize the class which has been serialized before the signing. So what
is best practice in my situation?
Do I have to convert all my saved classes or do I write a
SerializationBinder to handle it runtime?
|
by: mekim |
last post by:
Hello....I am trying to System.Reflection.Assembly.GetExecutingAssembly
().GetName
().Version.ToString () ;
to display the version of the app...but it remains static and therefore does
not increment...it's
AssemblyInfo.vb looks like this
|
by: Just Me |
last post by:
I have a solution containing many usercontrol projects.
When I wish to reference a usercontrol in another project I can select
either the project or the assembly.
Does it make a difference which one I select?
Thanks
| |
by: Nak |
last post by:
Hi there,
I was wondering if anyone knew of a way to maintain compatability with
assemblies providing the interfaces remains the same? At the moment if I
re-compile an assembly without actually changing an interface it breaks
compatability, forcing all of my consuming assemblies to need recompiling.
I know this could be done with VB6, what about .NET?
Nick.
|
by: jtyner |
last post by:
I am trying to get QFE (Quick Fix Engineering) working with an assembly
installed in the GAC. I have two books that claim if two different version
of the assembly are installed in the GAC -AND- they vary only by revision
number, then the default policy is to load the higher number version. I am
not able to reproduce this behavior in practice.
My test case is simple. I wrote a class with AssemblyVersion 1.0.0.1.
Installed into GAC. ...
|
by: Gavin Sullivan |
last post by:
I've been using the date (in YMMDD) format for the build number in the
AssemblyVersion attribute. However, it appears that numbers 65534 are
invalid!! Bit of a bummer for 2007!!!
Is there a reason for this? 65535 would make sense!?
Is there a work around, patch, etc??
Regards
|
by: Derek Hart |
last post by:
I am unclear about what all the requirements are to call a simple vb.net
application, installed in the GAC, from COM (such as writing vba in Word to
call the dotnet dll).
I believe I have installed the dll in the GAC. It is in there and has a
public token. I did not create a key-value pair. I believe it is strong
named, as it shows up in the GAC.
How do I browse the objects of it? I would like to call it late bound, but
the errors I...
|
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...
|
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...
| |
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...
|
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,...
|
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...
|
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...
|
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |