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 / New Users / January 2005

Tip: Looking for answers? Try searching our database.

HOWTO Build a C# app to MSIL/CIL?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
ATS - 31 Jan 2005 14:11 GMT
HOWTO Build a C# app to MSIL/CIL?

Please help,

I want to build an MSIL from my VS.NET/C# app, but I am finding confusing
information in MSDN on how to do it. I want VS.NET to automatically build the
MSIL each time my project builds. How can that be done?
Cowboy (Gregory A. Beamer) - MVP - 31 Jan 2005 14:23 GMT
MSIL? Compiling in VS.NET creates MSIL, so you have no problems. The command
line compilers (C# = csc.exe; VB.NET = vbc.exe) also produce MSIL.

---

Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

***************************
Think Outside the Box!
***************************

> HOWTO Build a C# app to MSIL/CIL?
>
[quoted text clipped - 3 lines]
> information in MSDN on how to do it. I want VS.NET to automatically build the
> MSIL each time my project builds. How can that be done?
ATS - 31 Jan 2005 14:29 GMT
Thank you for the reply,

I was "Seeing" that as the answer, especially as the ILasm compiler said
that the output was "EXE" or "DLL", and that threw me for a loop? Now here's
a tougher question. Is the EXE/DLL that VS.NET makes for a C# project for
.NET a "TRUE" .NET/MSIL compatible app? That is, can one run the DLL/EXE on a
seperate .NET architecture like Mono on the Mac?
Wiktor Zychla - 31 Jan 2005 15:03 GMT
> I was "Seeing" that as the answer, especially as the ILasm compiler said
> that the output was "EXE" or "DLL", and that threw me for a loop? Now
[quoted text clipped - 3 lines]
> on a
> seperate .NET architecture like Mono on the Mac?

yes you can. the CLI file format is an extension to PE file format. it
contains standard PE header followed by CLI header and CLI data.

you will find detailed description in ECMA's CLI draft, part II, section
24.1.
http://www.ecma-international.org/publications/standards/Ecma-335.htm

regards
Wiktor Zychla
Scott M. - 31 Jan 2005 14:32 GMT
It's automatic.  Noting for you to do.

> HOWTO Build a C# app to MSIL/CIL?
>
[quoted text clipped - 4 lines]
> the
> MSIL each time my project builds. How can that be done?

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.