ilasm

Failure using ilasm, but no reason given

时光总嘲笑我的痴心妄想 提交于 2021-02-08 03:34:52
问题 I am trying to use ILASM and the process seems to abort with the following message: ***** FAILURE ***** How can I find out why it has failed? Can I turn on verbose messages or is there a log file I can look at? 回答1: While I realise that this is probably too late to help the question author now, I will leave these details here in case it helps someone in the future. I had a similar problem recently where Ildasm would enable me to disassemble some DLLs to ILs, but Ilasm would not let me

Failure using ilasm, but no reason given

徘徊边缘 提交于 2021-02-08 03:34:46
问题 I am trying to use ILASM and the process seems to abort with the following message: ***** FAILURE ***** How can I find out why it has failed? Can I turn on verbose messages or is there a log file I can look at? 回答1: While I realise that this is probably too late to help the question author now, I will leave these details here in case it helps someone in the future. I had a similar problem recently where Ildasm would enable me to disassemble some DLLs to ILs, but Ilasm would not let me

Is it OK to remove .property statements from ILAsm files for production use?

…衆ロ難τιáo~ 提交于 2020-01-04 17:19:10
问题 Still working on my obfuscation program based on modifying ILAsm files. (Ref. Which C# method names should not be obfuscated? ) In looking at the ILAsm code, I get the impression that the .property statements aren't used for anything, at least not for program execution. Am I right in thinking they are only there to provide metadata for Visual Studio? And if so, is it OK to simply remove them when the ILAsm code will only be used to produce production modules that will never be used with

Compile IL code at runtime using .NET 3.5 and C# from file

左心房为你撑大大i 提交于 2019-12-24 00:38:39
问题 I would like to take a file that is an IL file, and at run time compile it back to an exe. Right now I can use process.start to fire off the command line with parameters (ilasm.exe) but I would like to automate this process from a C# service I will create. Is there a way to do this with reflection and reflection.emit? While this works: string rawText = File.ReadAllText(string.Format("c:\\temp\\{0}.il", Utility.GetAppSetting("baseName")), Encoding.ASCII); rawText = rawText.Replace("[--STRIP--]

Can you see the evaluation stack in mdbg?

安稳与你 提交于 2019-12-22 18:36:31
问题 Say I have the following CIL: ldc.i4 40 <- a breakpoint is set here ldc.i4.2 add box int32 call void [mscorlib]System.Console::WriteLine(string) I then use ilasm /debug main.il to assemble the exe and pdb files to use in mdbg. My question is, when I'm at say line 3, before the add operation is executed, I would want to see the evaluation stack which would show me the two int32 constants, 40 and 2, which I had loaded before. How can I view this evaluation stack in mdbg? 回答1: I found the

ILASM does not set FileVersion

 ̄綄美尐妖づ 提交于 2019-12-22 05:24:25
问题 I have an .il file which I can compile without any problems. I can strong name it and so without any issues. But I am not able to set the file version via the attribute as I would expect it. How can I set the FileVersion for an assembly when using ilasm? If I do a round trip I get always a .res file which does contain only binary data which is not readable. What is inside this res file and can I edit it? The code does not work .assembly myAssembly { .custom instance void [mscorlib]System

Guaranteed way to find the filepath of the ildasm.exe and ilasm.exe files regardless of .NET version/environment?

六月ゝ 毕业季﹏ 提交于 2019-12-21 03:58:26
问题 Is there a way to programmatically get the FileInfo/Path of the ildasm.exe/ilasm.exe executables? I'm attempting to decompile and recompile a dll/exe file appropriately after making some alterations to it (I'm guessing PostSharp does something similar to alter the IL after the compilation). I found a blog post that pointed to: var pfDir = Environment.GetFolderPath(Environment.SpecialFolders.ProgramFiles)); var sdkDir = Path.Combine(pfDir, @"Microsoft SDKs\Windows\v6.0A\bin"); ... However,

How to use .NET Core 2.0 ilasm.exe?

隐身守侯 提交于 2019-12-13 16:17:18
问题 I'm trying https://www.nuget.org/packages/runtime.win-x64.Microsoft.NETCore.ILAsm/ (upon Where is ilasm.exe in Microsoft.NETCore.ILAsm?) on a Win 10 Pro x64 PC. Nothing happens. Whatever syntax I'm using, still nothing. E.g. no .dll is generated from my input and nothing is printed in the console. Even if I just run "ilasm" (no parameters), no output is produced. It remains completely silent. At the same time, if I run older C:\WINDOWS\Microsoft.NET\Framework64\v4.0.30319\ilasm.exe, it always

ILDASM and ILASM, how use them?

橙三吉。 提交于 2019-12-12 09:08:16
问题 I'm having a hard time trying to (Dis)assemble a dll using the Visual Studio command prompt, don't look that simple as I see in the microsoft page. I'm using the ildasm for these way: ildasm myLibrary.dll output:MyLibrary.il And I get: Unable to open 'MyLibrary.il' for output. I also tried the full path: ildasm directory\myLibrary.dll output:directory\MyLibrary.il And I get: MULTIPLE INPUT FILES SPECIFIED Using the ildasm GUI actually works, but when I use the ilasm: ilasm myLibrary.il /dll I

Where is ilasm.exe in Microsoft.NETCore.ILAsm?

风格不统一 提交于 2019-12-11 10:32:10
问题 I need the most recent ilasm.exe. I thought it would be the one from https://www.nuget.org/packages/Microsoft.NETCore.ILAsm/ However, the downloaded microsoft.netcore.ilasm.2.0.0.nupkg archive doesn't contain any .exe or .dll files. I don't get how to use this package. 回答1: This package makes use of a new feature in NuGet to split packages per runtime. At the root of the Microsoft.NETCore.ILAsm package, you'll find a runtime.json file that references other nuget packages per platform. This