ilmerge

ILMerge issue error code 1

送分小仙女□ 提交于 2019-12-10 19:55:16
问题 I was made aware that ilmerge is a console application but when I run it, it runs for one second then closes. So below is the pre-build code I'm trying to use and it's giving this issue. Error 1 The command "ilmerge /out:F:\Users\Tom\Desktop\New folder\project\bin\Release\SkypePWN4G-1.5.5.0.exe F:\Users\Tom\Desktop\New folder\project\bin\Release\SkypePWN4G-1.5.5.0.exe F:\Users\Tom\Desktop\New folder\project\bin\Release\JSNet.dll F:\Users\Tom\Desktop\New folder\project\bin\Release\NAudio.dll"

C# Compiler Incorrectly Optimizes Code

為{幸葍}努か 提交于 2019-12-10 19:03:34
问题 I have a ASP.NET application running on a remote web server and I just started getting this error: Method not found: 'Void System.Collections.Generic.ICollection`1..ctor()'. I disassembled the code in the DLL and it seems like the compiler is incorrectly optimizing the code. (Note that Set is a class that implements a set of unique objects. It inherits from IEnumerable.) This line: Set<int> set = new Set<int>(); Is compiled into this line: Set<int> set = (Set<int>) new ICollection

merging .dll files with ILMerge failing to work

微笑、不失礼 提交于 2019-12-10 17:52:40
问题 First of all, I'm not sure if this is a problem with ILMerge or not, but I can't merge.dll files into my application. I tried this on the command line: ilmerge /target:winexe /out:test.exe MyApp.exe lib1.dll lib2.dll lib3.dll I got the following error, and I have no idea what it means: There were errors reported in MyApp's metadata. The pdb associated with D:\C#\source\bin\ReleaseMyApp.exe is out of date. I'm using the latest version by the way (2.10.526.0), but yeah I can't get this to work

.NET type definitions in merged assemblies (ILMerge)

二次信任 提交于 2019-12-08 22:05:58
问题 I am merging several .NET assemblies using ILMerge including some 3rd party assemblies. Since doing so, I've experienced several errors that all boil down to the fact that type definitions are tied to the assembly they are defined in. A simple example is the log4net config section definition in my App.config. It uses type="log4net.Config.Log4NetConfigurationSectionHandler, log4net" which will not work since the log4net assembly does not exist once it has been merged into my merged assembly.

In Visual Studio 2013 how do I limit code analysis to my code and not to referenced assemblies?

淺唱寂寞╮ 提交于 2019-12-08 02:11:24
问题 I have a solution in Visual Studio 2013 (c# code) that has a reference to a third-party assembly that I added with NuGet (ICSharpCode.SharpZipLib). When I run the "Code Analysis" on the solution I get lots of warnings coming from the third-party assembly. How do I tell VS that I only want code analysis advice from my code? I'm pretty sure the errors are coming from the library itself and not my usage of it. There are a total of 32 issues e.g. CA2237: Mark ISerializable types with

Running ILMerge tool using .NET 4 on Windows 8

半世苍凉 提交于 2019-12-07 20:52:11
问题 We are running ILMerge as a post build step and having problems when building on a Windows 8 machine. ILMerge.exe is a .NET 2 application so should be able to be loaded/hosted within the .NET 4 runtime. However as soon as we try to execute ILMerge on a Windows 8 build machine the Windows Features dialog appears saying it can't automatically install .NET 3.5 (inc 2.0) and the command fails. This also occurs if I simply run ILMerge.exe /? on the command line. I've tried adding an app.config

ILMerge using 2 third party dll's C++

隐身守侯 提交于 2019-12-07 12:00:57
问题 I have written a program that utilizes 2 3rd party dll's and I want to use ILMerge to merge both dll's into 1 executable. I have tried using the command line: ilmerge /target:winexe /out:final.exe normal.exe 3rd_party_dll_1.dll 3rd_party_dll_2.dll but this returns this error: `Could not load assembly from the location 'C:\Users\...' Skipping and processing trest of arguments. ` Am I missing something or is it possible that these dll's cannot be merged? 回答1: ILMerge doesn't work on native dlls

Running ILMerge tool using .NET 4 on Windows 8

£可爱£侵袭症+ 提交于 2019-12-06 15:39:43
We are running ILMerge as a post build step and having problems when building on a Windows 8 machine. ILMerge.exe is a .NET 2 application so should be able to be loaded/hosted within the .NET 4 runtime. However as soon as we try to execute ILMerge on a Windows 8 build machine the Windows Features dialog appears saying it can't automatically install .NET 3.5 (inc 2.0) and the command fails. This also occurs if I simply run ILMerge.exe /? on the command line. I've tried adding an app.config file with supportedRuntime/requiredRuntime but no luck. Does anyone know how I can resolve this problem

How to use ilMerge to merge dll into an exe file? [duplicate]

邮差的信 提交于 2019-12-06 13:06:58
This question already has an answer here : Closed 6 years ago . Possible Duplicate: Merging .dll with .exe Okay, so... I have all the files of ilmerge, along with the .exe (CabalMain.exe) and the dll (crckd.dll) in one path. C:\Program Files (x86)\Microsoft\ILMerge I shift>rightclick folder and open up command prompt. Since I'd like to merge the two I enter: C:\Program Files (x86)\Microsoft\ILMerge>C:\Program Files (x86)\Microsoft\ILMerg e\ilmerge C:\Program Files (x86)\Microsoft\ILMerge\Cabalmain.exe C:\Program File s (x86)\Microsoft\ILMerge\crckd.dll /out:C:\Program Files (x86)\Microsoft

How to merge files to single executable or decrease the number of distributed files

女生的网名这么多〃 提交于 2019-12-06 05:59:19
问题 I have such output files of my WPF application: de\ es\ fr\ hu\ it\ pt-BR\ Resources\ ro\ ru\ sv\ zh-Hans\ FileHelpers.dll FileHelpers.DataLink.dll FileHelpers.ExcelStorage.dll Interop.Excel.dll Interop.Office.dll Ionic.Zip.dll wpftoolkit.dll Xceed.Wpf.AvalonDock.dll Xceed.Wpf.AvalonDock.Themes.Aero.dll Xceed.Wpf.AvalonDock.Themes.Metro.dll Xceed.Wpf.AvalonDock.Themes.VS2010.dll Xceed.Wpf.DataGrid.dll Xceed.Wpf.Toolkit.dll MyApp.Common.Extensions.dll MyApp.Common.Helpers.dll MyApp.Common