|
|
|
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:
|
|
|