PC Review


Reply
Thread Tools Rate Thread

Assembly resolver, side by side, versioning...

 
 
=?Utf-8?B?aW5ldG11Zw==?=
Guest
Posts: n/a
 
      11th Feb 2005
I have read that you can specify only the major/minor numbers (plus token and
culture) to reference a DLL installed in the GAC, and that the resolver will
"upselect" to the dll with the latest build and revision number. Is this
true?

However, when I add references in the compilation section of the web.config
of an ASP.NET app, it can not find the DLL in the GAC unless I give it the
build and revision number. I would rather not do this and just reference the
major and minor for configuration management reasons. What is up here? Is
this becausee the compiler needs the fully qualified path?

Thanks.
--
Patrick
 
Reply With Quote
 
 
 
 
Richard Grimes [MVP]
Guest
Posts: n/a
 
      15th Feb 2005
inetmug wrote:
> I have read that you can specify only the major/minor numbers (plus
> token and culture) to reference a DLL installed in the GAC, and that
> the resolver will "upselect" to the dll with the latest build and
> revision number. Is this true?


No, if the library has a strong name then .NET will use the entire
version, including build and revision.

> However, when I add references in the compilation section of the
> web.config of an ASP.NET app, it can not find the DLL in the GAC
> unless I give it the build and revision number. I would rather not
> do this and just reference the major and minor for configuration
> management reasons. What is up here? Is this becausee the compiler
> needs the fully qualified path?


You could use a partial name if you are loading the library through the
framework API LoadWithPartialName, in this situation you can use a
config file setting <qualifuAssembly> to give the full name.

http://www.grimes.demon.co.uk/worksh...tm#Example_8_4

Richard
--
www.richardgrimes.com
my email (E-Mail Removed) is encrypted with ROT13 (www.rot13.org)


 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Need help with Side-by-Side Assembly on Vista =?Utf-8?B?Z3Njb3R0MjExMg==?= Windows Vista General Discussion 1 29th Oct 2007 05:27 PM
Using a c# assembly client side while disconnected =?Utf-8?B?QW5kcmV3IEJhZ2J5?= Microsoft ASP .NET 2 28th Mar 2005 09:55 PM
Assembly Resolver, Side by Side, Versioning =?Utf-8?B?aW5ldG11Zw==?= Microsoft Dot NET 0 11th Feb 2005 09:27 PM
Using a c# assembly client side =?Utf-8?B?R3Jhdnk=?= Microsoft ASP .NET 9 24th Jan 2005 04:15 PM
Using Side-by-Side Calendars, would like side-by-side DAYS Matt Landis Microsoft Outlook Calendar 6 19th Mar 2004 09:49 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:14 PM.