HOWTO Build a C# app to MSIL/CIL?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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?
 
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!
***************************
 
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?
 
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?

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
 
Back
Top