HOWTO Build a C# app to MSIL/CIL?

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?
 
G

Guest

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

Guest

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?
 
W

Wiktor Zychla

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top