Re: Assembly.GetExecutingAssembly().GetReferencedAssemblies()
From: Shri Borde [MS] (sborde_at_online.microsoft.com)
Date: 07/09/04
- Next message: Michael Appelmans: "customize some rows of dataset?"
- Previous message: mikeb: "Re: Byte size of characters when encoding"
- In reply to: Mattias Sjögren: "Re: Assembly.GetExecutingAssembly().GetReferencedAssemblies()"
- Messages sorted by: [ date ] [ thread ]
Date: Fri, 09 Jul 2004 23:41:15 GMT
This is the same information as shown by ildasm.exe in the "Manifest".
Shri Borde [MSFT]
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
> From: Mattias Sjögren <mattias.dont.want.spam@mvps.org>
> Subject: Re: Assembly.GetExecutingAssembly().GetReferencedAssemblies()
> Date: Fri, 09 Jul 2004 02:09:18 +0200
> References: <#AwAsGTZEHA.3144@TK2MSFTNGP12.phx.gbl>
> X-Newsreader: Forte Agent 1.8/32.548
> MIME-Version: 1.0
> Content-Type: text/plain; charset=ISO-8859-1
> Content-Transfer-Encoding: 8bit
> Message-ID: <ee$5HkUZEHA.2260@TK2MSFTNGP12.phx.gbl>
> Newsgroups: microsoft.public.dotnet.framework
> NNTP-Posting-Host: g150.ryd.student.liu.se 130.236.238.150
> Lines: 1
> Path:
cpmsftngxa06.phx.gbl!TK2MSFTNGXA01.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP12
phx.gbl
> Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.framework:75370
> X-Tomcat-NG: microsoft.public.dotnet.framework
>
> David,
>
> >I would really like a method which reflects the "full" static reference
list
> >in the c# project file. Does such a method exist, or is there a good
way to
> >simulate this?
>
> The C# compiler only writes AssemblyRef records (which is what
> GetReferencedAssemblies retrieves) for assemblies that you actually
> use. If you reference a bunch of assemblies that you don't use in your
> code, that will not be seen in the compiled assembly. The only way to
> discover such references would be to parse the .csproj project file.
>
>
>
> Mattias
>
> --
> Mattias Sjögren [MVP] mattias @ mvps.org
> http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
> Please reply only to the newsgroup.
>
- Next message: Michael Appelmans: "customize some rows of dataset?"
- Previous message: mikeb: "Re: Byte size of characters when encoding"
- In reply to: Mattias Sjögren: "Re: Assembly.GetExecutingAssembly().GetReferencedAssemblies()"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|