DotNetNewsgroup.com  
web access to complete list of Microsoft.NET newsgroups
   home   |   control panel login   |   archive  |  
 
  carried group
academic
adonet
aspnet
aspnet.announcements
aspnet.buildingcontrols
aspnet.caching
aspnet.datagridcontrol
aspnet.mobile
aspnet.security
aspnet.webcontrols
aspnet.webservices
assignment_manager
datatools
dotnet.distributed_apps
dotnet.general
dotnet.myservices
dotnet.nternationalization
dotnet.scripting
dotnet.security
dotnet.vjsharp
dotnet.vsa
dotnet.xml
dotnetfaqs
framework
framework.clr
framework.compactframework
framework.component_services
framework.controls
framework.databinding
framework.drawing
framework.enhancements
framework.interop
framework.odbcnet
framework.performance
framework.remoting
framework.sdk
framework.setup
framework.webservices
framework.windowsforms
framework.wmi
frwk.windowsforms.designtime
lang.csharp
lang.jscript
lang.vb
lang.vb.controls
lang.vb.data
lang.vb.upgrade
lang.vc
lang.vc.libraries
  
 
start date: Fri, 03 Aug 2007 23:39:55 -0700,    posted on: microsoft.public.dotnet.framework        back       

Thread Index
  1    nano2k
          2    Mattias Sjgren
          3    GlennDoten
          4    nano2k


Getting assembly version without loading it   
Hi

I need to get the version of an assembly without having to load it
neither using Assembly class's Load methods, nor by using new
appdomains.
It's quite complicated for me to explain exactly why. Manly is because
I don't the loaded assembly to remain loaded (because no
Assembly.Unload() method exists). Second, I can't manage to load it
using appdomains because i don't have all the dependencies of the
assembly. That is, this assembly depends on 10 other aseemblies, but i
only have the main assembly.

Maybe a shell command exists?
Thanks
Date:Fri, 03 Aug 2007 23:39:55 -0700   Author:  

Re: Getting assembly version without loading it   

>I need to get the version of an assembly without having to load it
>neither using Assembly class's Load methods, nor by using new
>appdomains.


You can use the AssemblyName class and its GetAssemblyName method.


Mattias

-- 
Mattias Sjgren [C# MVP]  mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.
Date:Sat, 04 Aug 2007 14:09:41 +0200   Author:  

Re: Getting assembly version without loading it   
Mattias Sjgren wrote:

>> I need to get the version of an assembly without having to load it
>> neither using Assembly class's Load methods, nor by using new
>> appdomains.
> 
> You can use the AssemblyName class and its GetAssemblyName method.
> 
> 
> Mattias
> 


You could look at the assembly file with ildasm.exe and get the version 
from there.

-- 
-glenn-
Date:Sat, 04 Aug 2007 09:07:18 -0400   Author:  

Re: Getting assembly version without loading it   
On 4 Aug, 15:09, Mattias Sjögren 
wrote:

> >I need to get the version of an assembly without having to load it
> >neither using Assembly class's Load methods, nor by using new
> >appdomains.
>
> You can use the AssemblyName class and its GetAssemblyName method.
>
> Mattias
>
> --
> Mattias Sjögren [C# MVP]  mattias @ mvps.orghttp://www.msjogren.net/dotnet/|http://www.dotnetinterop.com
> Please reply only to the newsgroup.


Thanks Mattias
This is what i needed
Date:Sun, 05 Aug 2007 23:47:58 -0700   Author:  

Google
 
Web dotnetnewsgroup.com


COPYRIGHT ?2005, EUROFRONT WORLDWIDE LTD., ALL RIGHT RESERVE  |   Contact us