ilmerge

A bit lost with ILMerge

本小妞迷上赌 提交于 2021-02-08 03:29:12
问题 Thanks for taking some time to help me out. Using: Microsoft Visual C# 2010 Express I have two files: RJFCModPackInstaller.exe and Ionic.Zip.dll That i'd like to merge in to one: RJFCModpackInstaller.exe I've tried to do post-build and havetried multiple GUIs, what can/should I do? I tried using this: "$(SolutionDir)ILMerge\ILMerge.exe" /out:"$(SolutionDir)\deploy\$(TargetFileName)" "$(TargetDir)$(TargetFileName)" "$(TargetDir)*.dll" /target:exe /targetplatform:'v4, C:\Windows\Microsoft.NET

Understanding IlMerge - how to pack an executable with all it's associated dll's

懵懂的女人 提交于 2020-02-01 09:26:25
问题 I know I'm not the first person to ask this question on Stack Overflow and I'm sure I won't be the last. But, after spending hours researching how to do this and then physically trying to do it, I'm near ready to give up. I have a .NET Framework 4, C#, WinForms application that builds to an executable. I rely on many many many dlls. The dlls fall into multiple categories. Libraries I have written with no dependencies of their own Libraries I have written with dependencies on other libraries I

Understanding IlMerge - how to pack an executable with all it's associated dll's

老子叫甜甜 提交于 2020-02-01 09:26:18
问题 I know I'm not the first person to ask this question on Stack Overflow and I'm sure I won't be the last. But, after spending hours researching how to do this and then physically trying to do it, I'm near ready to give up. I have a .NET Framework 4, C#, WinForms application that builds to an executable. I rely on many many many dlls. The dlls fall into multiple categories. Libraries I have written with no dependencies of their own Libraries I have written with dependencies on other libraries I

ILMerge and localized resource assemblies

一曲冷凌霜 提交于 2020-01-29 04:38:24
问题 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? 回答1: 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. 回答2: Disclaimer: I work for the company that makes

System.OutOfMemoryException when merging Newtonsoft.Json

左心房为你撑大大i 提交于 2020-01-24 04:35:12
问题 I am creating a plugin to call a webservice. I need to serialize and deserialize the Json object. So, I need Newtonsoft.Json. I am trying to merge the dll from NewtonSoft.Json and my application dll using ILMerge.MSBuild.Task and ILMerge in Visual Studio 2015. I get the error below: I looked for solution in internet but could not find any solution. 回答1: For ILMerge in VisualStudio Use the necessary dlls from NuGet Package Manager Only I was using the MSBuild.ILMerge.Task 1.0.5 and latest

Is it possible to remove unused code/assemblies in .NET?

丶灬走出姿态 提交于 2020-01-13 18:10:09
问题 I have a control library in my application that's a bit big for the type of application I'm developing. The library is more than 2Mb and I barely use it's functionality, I would say I use like 5% to 10% of all it's functionality. Is there anyway to remove code that my application never uses from the library? P.S: The library is not developed by me and it's not open-source (you can buy the code though). EDIT: I posted this because I though this could be achieved using ILMerge, that's what

Is it possible to remove unused code/assemblies in .NET?

妖精的绣舞 提交于 2020-01-13 18:08:52
问题 I have a control library in my application that's a bit big for the type of application I'm developing. The library is more than 2Mb and I barely use it's functionality, I would say I use like 5% to 10% of all it's functionality. Is there anyway to remove code that my application never uses from the library? P.S: The library is not developed by me and it's not open-source (you can buy the code though). EDIT: I posted this because I though this could be achieved using ILMerge, that's what

MSBuild.ILMerge.Task not allowing Duplicate Types

喜你入骨 提交于 2020-01-07 04:24:47
问题 I'm getting the following error from a call to ILMerge. ILMerge.Merge: ERROR!!: Duplicate type 'System.Net.Http.HttpRequestMessageExtensions' found in assembly 'System.Net.Http.Formatting'. Do you want to use the /alllowDup option? And you'd think this would be straightforward to solve. The error message says what to do. But my call to ILMerge is made by MSBuild.ILMerge.Task And it seems I'm already doing what I need to do to get this to happen... From my ILMerge.props file: <!-- added in

Unable to load DLL mscorsn.dll with ILMerge

倾然丶 夕夏残阳落幕 提交于 2020-01-05 13:52:15
问题 I am trying to compile a project that uses ILMerge to combine multiple DLLs together and then sign them for deployment to CRM. The code compiled, but ILMerge fails. This process works on other developers machines but not mine. I am using Visual Studio 2015, Windows 10, and building against .NET 4.5.2. All of the projects are compiling with AnyCPU. Resolved assembly reference 'System.Runtime.Caching' to 'C:\Windows\Microsoft.NET\Framework64\v4.0.30319..\v4.0.30319\System.Runtime.Caching.dll'.

How can I check for an InternalsVisibleTo attribute on an assembly?

坚强是说给别人听的谎言 提交于 2020-01-05 08:07:10
问题 I've used ILMerge to merge a secondary assembly that is itself merged with Castle.DynamicProxy, having set most if not all of the normally-public Castle types to internal. When I use the code from the secondary assembly that is dependent on the Castle types, I get a TypeLoadException saying that access is denied. The first step to check is that my merged assembly has the InternalsVisibleTo attribute still set for the DynamicProxy2 assembly. Any way to check this? 回答1: DotPeek shows this by