Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / CLR / September 2003

Tip: Looking for answers? Try searching our database.

About Assembly

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
xiaorun huang - 19 Sep 2003 06:34 GMT
How can I add some extern assembly reference to an assembly I generate in
program ?

I use program to generate a assembly, when i see its MANIFEST with ildasm,
it has only

.assembly extern mscorlib
{
 .publickeytoken = (B7 7A 5C 56 19 34 E0 89 )                         //
.z\V.4..
 .ver 1:0:5000:0
}

but assembly generate by compiler from microsoft has many other .assembly
extern such as

.assembly extern Tools
{
 .ver 0:0:0:0
}
.assembly extern System
{
 .publickeytoken = (B7 7A 5C 56 19 34 E0 89 )                         //
.z\V.4..
 .ver 1:0:5000:0
}
.assembly extern System.Xml
{
 .publickeytoken = (B7 7A 5C 56 19 34 E0 89 )                         //
.z\V.4..
 .ver 1:0:5000:0
}

How can i add these information to a assembly in program mode.

Thanks

xiaorun huang
Harsh Thakur - 19 Sep 2003 07:30 GMT
Hi xiaorun huang,

..assembly extern System.Xml means that the assembly is
referring to some objects in the System.Xml assembly.

If you want to add reference to an assembly, in VS.NET,
open solution explorer, right-click References, and select
add reference. Select the assembly whose reference you'd
like to add and thats it.

HTH
Regards
Harsh Thakur

>-----Original Message-----
>How can I add some extern assembly reference to an assembly I generate in
[quoted text clipped - 35 lines]
>
>xiaorun huang
xiaorun huang - 19 Sep 2003 20:14 GMT
Thanks!  HTH!

Oh, maybe I am not full express me!

I want to do it in porgram mode! I want to write a compiler, so I should
genereate assembly using System.Reflection.Xmit. So I want use what API can
add .assembly extern to a assembly that my compiler will generate!

xiaorun huang

> Hi xiaorun huang,
>
[quoted text clipped - 56 lines]
> >
> >xiaorun huang
Mattias Sj?gren - 20 Sep 2003 00:16 GMT
>I want to do it in porgram mode! I want to write a compiler, so I should
>genereate assembly using System.Reflection.Xmit. So I want use what API can
>add .assembly extern to a assembly that my compiler will generate!

Reflection Emit will handle that automatically when you use types
defined in external assemblies.

Do you have any reason to add assemblyrefs for assemblies that you
don't actually use in your own assembly?

Mattias

Signature

Mattias Sjögren [MVP]  mattias @ mvps.org
http://www.msjogren.net/dotnet/
Please reply only to the newsgroup.

xiaorun huang - 22 Sep 2003 03:16 GMT
Oh, this is as what i want!

Thanks!

xiaorun huang

> >I want to do it in porgram mode! I want to write a compiler, so I should
> >genereate assembly using System.Reflection.Xmit. So I want use what API can
[quoted text clipped - 7 lines]
>
> Mattias

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.