English 中文(简体)
ILMerge——指挥官用第255号法律撤出
原标题:ILMerge - the command exited with code 255

I m trying to embed DLLs in single executable using ILMerge.

I added this command line in build events > post build event command line:

C:Program FilesMicrosoftILMergeILMerge.exe /out:$(TargetDir)Publish.exe 
($TargetDir)foo.dll

但是,在我试图管理时,我有以下错误:

The command "C:Program FilesMicrosoftILMergeILMerge.exe /out:C:Publish.exe ($TargetDir)foo.dll" exited with code 255

我如何确定这一点?

问题回答

看看错误的信息,我认为

($TargetDir)foo.dll 

应当

$(TargetDir)foo.dll

我认为,这里发生的情况是,ILMerge在进入档案系统时遇到错误,只是将这种价值宣传给它,使其具有退出法。 窗户地图中的差幅为ERROR_EA_LIST_INCONSISTENT

我试图寻找这一错误的原因,不幸的是,大多数答复都表明,档案系统腐败是造成的原因。

你们是否在使用触及有关档案的其他工具时看到这一错误? 其他许多报告发现,探索者也存在同样的错误,因此,我会试图与探索者进行浏览、开张等......并看看你是否遇到同样的问题。 如果是的话,结果就好于。 你们的辛勤努力正在失败。

Hopefully someone else will come along with a more cheerful answer.

Exit code 255 means Studio is not able to find the file you are asking it to execute. Check your paths and remember to put quotes around paths with spaces

我记得,当一个外部文字使用壳牌/通普进入EXE时,我正在发现这一错误。

原因之一可能是工作指南没有正确确定。

因此,在打电话到EXE/DLL之前,必须正确确定工作名录(在可起诉的谎言中)。





相关问题
Anyone feel like passing it forward?

I m the only developer in my company, and am getting along well as an autodidact, but I know I m missing out on the education one gets from working with and having code reviewed by more senior devs. ...

NSArray s, Primitive types and Boxing Oh My!

I m pretty new to the Objective-C world and I have a long history with .net/C# so naturally I m inclined to use my C# wits. Now here s the question: I feel really inclined to create some type of ...

C# Marshal / Pinvoke CBitmap?

I cannot figure out how to marshal a C++ CBitmap to a C# Bitmap or Image class. My import looks like this: [DllImport(@"test.dll", CharSet = CharSet.Unicode)] public static extern IntPtr ...

How to Use Ghostscript DLL to convert PDF to PDF/A

How to user GhostScript DLL to convert PDF to PDF/A. I know I kind of have to call the exported function of gsdll32.dll whose name is gsapi_init_with_args, but how do i pass the right arguments? BTW, ...

Linqy no matchy

Maybe it s something I m doing wrong. I m just learning Linq because I m bored. And so far so good. I made a little program and it basically just outputs all matches (foreach) into a label control. ...