Which project should we create for compiling IL code? RRS feed

  • Question

  • which project should we create for compilting IL code like the following?

    //----------- Program header
    .assembly extern mscorlib { auto }
    .assembly OddOrEven { }
    .module OddOrEven.exe
    //----------- Class declaration
    .namespace Odd.or {
    .class public auto ansi Even
    extends [mscorlib]System.Object {
    //----------- Field declaration
    .field public static int32 val
    //----------- Method declaration
    .method public static void check( ) cil managed {
    .locals init (int32 Retval)
    ldstr "Enter a number" 23


    Monday, June 20, 2011 5:25 AM


  • There's is no project in visual studio that allows you to compile bare IL, you'll have to use the visual studio command prompt and use ilasm
    • Marked as answer by 沈世鈞 Tuesday, June 21, 2011 2:23 AM
    Monday, June 20, 2011 3:33 PM