Running MSIL inside Visual Studio

We have Visual Studio 2005.

I can successfully run MSIL programs from the command line using "ilasm".

I would like to be able to run them inside VS.

From other messages and requests, I understand you need to create a project like "Console Application"? (They refer to the fact that VS can handle MSIL, but I cannot find any specific "methods".)

Console Application Provides Standard Program.cs

using System;
using System.Collections.Generic;
using System.Text;

    namespace AddNumbers
    {
        class Program
        {
            static void Main(string[] args)
            {

            }
        }
    }

Then I add the .il file (which adds two numbers) to the project. The project builds successfully, and when I start it, it does nothing, and the breakpoints that I set in the .il file do not start. Not surprisingly, because the .il file is not called.

, ?

, .il, , .il ( ), ?

+3
1

- ILASM MSBuild.

ILASM.

, MSDN.

0

Source: https://habr.com/ru/post/1704983/


All Articles