ilmerge

ILMerge generated assembly doesn't run, although log output reports no errors - why is this?

戏子无情 提交于 2019-12-02 20:50:28
I'm testing out ILMerge for a new project, and although the .exe file seems to be created correctly, it won't run. I have installed ILMerge via the .msi installer (found here http://www.microsoft.com/download/en/confirmation.aspx?id=17630 ) and am running on a test project using a batch file. Below is the batch file, and the subsequent output log after running. All appears ok in the logs, no errors reported. I am running .NET framework 4.0 for this test project. When I try to run the .exe, it fails with a standard "This program has stopped working". I have read that some people have issues

ILMerge question

ぃ、小莉子 提交于 2019-12-01 21:54:40
I'm trying to merge multiple assemblies into one as my 'Proxy' assembly for a WCF service. Currently, users of the Proxy need to reference the assembly containing the data contracts, and also my domain assembly because of my inheritance schemes. I'd like to use ILMerge for this. In particular, the ILMerge-Tasks project looks promising, especially this line from their project home: ILMerge-Tasks Project Home: ...It even includes a post-build event that merges ILMerge and the task dll so that you can use the task without ILMerge.exe being present. This is precisely what i'd like to accomplish,

Is it possible to only merge a subset of dependencies using ILMerge?

陌路散爱 提交于 2019-11-30 18:16:39
I'm trying something exploratory: Say I have a library "coolproject" and it has dependencies to one.dll , two.dll , and three.dll . I would like to use ILMerge to combine coolproject with one.dll and two.dll but NOT three.dll . At the completion of the merge I should have coolproject.dll and three.dll . Wherever I intend to use coolproject.dll I must also reference three.dll Is this even possible? Whenever I try it I get. Unresolved assembly reference not allowed: three . I'm omitting three.dll by setting "Copy Local" = false. [EDIT]: Executed as the following: ILMerge /targetplatform:v2 /log

How do I debug into an ILMerged assembly?

a 夏天 提交于 2019-11-30 15:17:16
问题 Summary I want to alter the build process of a 2-assembly solution, such that a call to ILMerge is invoked, and the build results in a single assembly. Further I would like to be able to debug into the resultant assembly. Preparation - A simple example New Solution - ClassLibrary1 Create a static function 'GetMessage' in Class1 which returns the string "Hello world" Create new console app which references the ClassLibrary. Output GetMessage from main() via the console. You now have a 2

ILMerge + localized resource assemblies

早过忘川 提交于 2019-11-30 13:59:57
I'm using ILMerge to create a single assembly application out of a project that contains 1 exe and 2 resource dll's: \bin\Debug\test.exe \bin\Debug\nl-BE\test.resources.dll \bin\Debug\fr-FR\test.resources.dll It's a simple test project with 1 form (Form1.cs), so nothing special. My goal is to create a single assembly app with a working resource manager (I have read ILMerge and localized resource assemblies and Single-assembly multi-language Windows Forms deployment (ILMerge and satellite assemblies / localization) - possible? for info on how to do this). After compiling the project, I run

ILMerge and localized resource assemblies

风格不统一 提交于 2019-11-30 12:23:48
We have an application whose structure when compiled looks something like this: Foo nb-NO Text.resources.dll sv-SE Text.resources.dll Bar.dll Foo.exe Text.dll Is it possible to use ILMerge on this? How would you do that? Tao I asked my own variant of this question and eventually got/implemented an answer: Single-assembly multi-language Windows Forms deployment (ILMerge and satellite assemblies / localization) - possible? Hope this helps. Disclaimer: I work for the company that makes Dotfuscator. There may be other alternatives out there that I am not aware of but I am pretty sure ILMerge does

BinaryFormatter.Deserialize “unable to find assembly” after ILMerge

為{幸葍}努か 提交于 2019-11-30 05:04:39
I have a C# solution with a referenced dll (also C# with the same .Net version). When I build the solution and run the resulting exe, without merging the exe and the referenced dll, everything works fine. Now I want to merge these into one exe. I run ILMerge and everything appears to work ok. I try to execute the exe and it seems to run just fine until it tries to deserialize an object defined in the referenced dll. using (Stream fstream = new FileStream(file_path, FileMode.Open)) { BinaryFormatter bf = new BinaryFormatter(); return bf.Deserialize(fstream) as ControlledRuleCollection; //

Serious trouble with ILMerge and .NET 4.0

北战南征 提交于 2019-11-30 03:56:59
For the life of me, I can't seem to get my .NET 4 application merging properly with ILMerge. Even after setting /targetplatform, /lib, /ndebug and adding a custom ILMerge.exe.config file the output file doesn't work properly (it doesn't seem to be able to "find" the merged libraries). I've tried this and this to no avail. I can't even get it to build unless I use the config file, but when I do it doesn't work. Without the config file, I consistently get the error message " Unresolved assembly reference not allowed: PresentationFramework ". Here is the current state of my ILMerge command being

Is it possible to only merge a subset of dependencies using ILMerge?

那年仲夏 提交于 2019-11-30 02:38:18
问题 I'm trying something exploratory: Say I have a library "coolproject" and it has dependencies to one.dll , two.dll , and three.dll . I would like to use ILMerge to combine coolproject with one.dll and two.dll but NOT three.dll . At the completion of the merge I should have coolproject.dll and three.dll . Wherever I intend to use coolproject.dll I must also reference three.dll Is this even possible? Whenever I try it I get. Unresolved assembly reference not allowed: three . I'm omitting three

ILMerge + localized resource assemblies

ぃ、小莉子 提交于 2019-11-29 19:48:56
问题 I'm using ILMerge to create a single assembly application out of a project that contains 1 exe and 2 resource dll's: \bin\Debug\test.exe \bin\Debug\nl-BE\test.resources.dll \bin\Debug\fr-FR\test.resources.dll It's a simple test project with 1 form (Form1.cs), so nothing special. My goal is to create a single assembly app with a working resource manager (I have read ILMerge and localized resource assemblies and Single-assembly multi-language Windows Forms deployment (ILMerge and satellite