Questions tagged [ilasm]

The MSIL Assembler generates a portable executable (PE) file from Microsoft intermediate language (MSIL). You can run the resulting executable, which contains MSIL and the required metadata, to determine whether the MSIL performs as expected.

76 questions
1
vote
3 answers

Failure when using ILASM to compile IL to EXE

I've spent hours trying to figure out what is wrong. I know the program is functional, as I tested by debugging the .il in MonoDevelop, however I can't compile through that. This is the log from the command prompt: http://pastebin.com/NYWAbrUV Any…
Kade
  • 151
  • 1
  • 10
1
vote
1 answer

Unable to run ILAsm using ProcessInfo

I'm trying to compile IL code using bat file and C#. Here is a C# code ProcessStartInfo processStartInfo = new ProcessStartInfo(ILCompiler, @"c:\Windows\Microsoft.NET\Framework\v4.0.30319\" + ILCompiler + " "+OutILFile+" /exe /output:" +…
Alan Coromano
  • 24,958
  • 53
  • 135
  • 205
0
votes
0 answers

dotfuscator getting error Non-public instance method in interface

I'm using dotfuscator 6.3 community. dotfuscator builds fails with the message ilasm returned 1. dotfuscator builds fails after following exectution Running C:\Windows\Microsoft.NET\Framework64\v4.0.30319\ilasm.exe…
stUStiat
  • 1
  • 1
0
votes
2 answers

How to compile CIL code (intermediate code used on .NET) using ilasm for Linux and OSX?

I used the runtime.win-x64.Microsoft.NETCore.ILAsm nuget to get ilasm.exe to compile my CIL codes. It compiles everything correctly for the windows .exe PE, but apparently it doesn't compile for Linux and MacOS... I know that using .NET 5.0 or newer…
0
votes
0 answers

Ilasm doesn't seem to include resources in dll

I'm using ildasm.exe to decompile a .dll (e.g. myfile.dll) into an .il file, a .res file and several .bmp, .png and some other files. The latter image and other files are probably not included into the .dll file when using ilasm myfile.il…
0
votes
1 answer

How can I disassemble the second payload of this malware dropper?

I am currently reverse engineering a piece of .NET PE malware that drop shellcode using the CreateThread function and a block of data. This is the shellcodeRunner function as decompiled by monodis (im on linux) .maxstack 6 .locals init ( …
0
votes
1 answer

Cannot build CSCORE in VS2019 - ilasm failure in post build

Following Cannot compile CSCORE after retargeting to .NET 4.7.2 and Failure using ilasm, but no reason given Trying to build CSCore in VS2019. Initially the postbuild script had paths incompatible with my environment, so I fixed them. Now it kind of…
Leo128
  • 163
  • 12
0
votes
2 answers

Is it possible to convert a single C# file to IL assembly?

Given a single c# source file, I'd like to output IL (not assembled) of that single file such that later I can feed each '.il' file to ilasm to produce assemblies, is this possible?
IanNorton
  • 7,145
  • 2
  • 25
  • 28
0
votes
1 answer

Methods of storing weakly typed variables

During the development stages of my compiler I ran into a pretty complex problem: how to store weakly typed variables in my language. Since I allow variables to be declared without explicitly specifying their type, and allow functions to return…
Samuel Allan
  • 117
  • 6
0
votes
1 answer

Which is faster: ldc.i4/ldstr or ldloc?

I'm writing a very basic compiler for the .NET platform and would like to know something for my implementation of constants. In my compiler, the use of constants will hopefully replace the ldloc operation. If the constants theAge(18) and…
Barry
  • 448
  • 5
  • 10
0
votes
1 answer

Signing an unsigned assembly and targeting .NET 2.0 using ilasm.exe

I'm creating a CLR assembly for SQL Server 2008, which only supports .NET 2.0 assemblies. Furthermore, SQL Server also requires a strong name key with each assembly you want to register. The assembly I am trying to create references the .NET 2.0…
vimfluencer
  • 3,106
  • 3
  • 17
  • 25
0
votes
1 answer

strong naming for microsoft enterprise library

I am using Microsoft enterprise library in one of my projects. I need to strong name one of the dlls which is Microsoft.Practices.EnterpriseLibrary.Common. But it is not working. When I decompile using ILDASM, it generates 3 files. IL file…
0
votes
1 answer

.net icon loss when disassembling

I disassebmled application using command "ildasm MyApp.exe /output:MyApp.il", then it generated some resource files and MyApp.il. After it i copied all generated files and .il file into ilasm.exe's folder. After built it using command "ilasm…
0
votes
1 answer

Creating a Compact Framework DLL using ilasm.exe Assembler

So I'm attempting to modify a Compact Framework to export a C function. It works fine on the Full Framework. The method being used is described here.…
CathalMF
  • 9,705
  • 6
  • 70
  • 106
0
votes
2 answers

strongly-naming .net assemblies in a strongly-named assembly manifest

I have 6 old VB6 DLLs that need to work with my application. To have them work in .NET land, they were converted to Interop DLLs. One of the Interop DLLs (call it Master.DLL) references the other 5 DLLs. I wanted to strongly-name Master.DLL so I…
ryrich
  • 2,164
  • 16
  • 24