23 questions
0
votes
0
answers
29
views
ILRepack build throws "Type exists in both ..." error
I am running into a build error when trying to pack my solution using
ILRepack.Lib.MSBuild.Task>. My solution consists of 'Project1' and my unit test project 'TestProject1'. Project1 uses a '...
1
vote
0
answers
131
views
ILRepack (ILRepack.MSBuild.Task) - classes of merged assemblies not accessible
I want to "merge" (or "pack") some .NET assemblies into one.
To achieve this I am trying "ILRepack".
I am referencing the nuget package 'ILRepack.MSBuild.Task' (version 2....
0
votes
1
answer
125
views
How to debug a merged assembly (.EXE)?
I'm using ILRepack to merge $(TargetDir)\*.dll with $(TargetDir)\Setup.exe into a subfolder $(TargetDir)\Merged\Setup.exe. The merge is successful, and Setup.exe runs, but I'm getting some JIT errors ...
1
vote
0
answers
333
views
C# ILRepack throws "Object reference not set to an instance of an object."
Guess ILRepack is not used so much any more now when Single-file deployment exist.The last releases from il-repack and ILRepack.Lib.MSBuild.Task is quite old.
But I have a problem with ILRepack that I ...
4
votes
0
answers
2k
views
Tools or techniques for merging multiple DLLs into a single file in .NET 6
I'm currently migrating a project from .NET Framework 4.8 to .NET 6. In the build pipeline the following tools are in use:
ILRepack or ILMerge: for merging multiple XML files into one XML
Costura....
1
vote
1
answer
915
views
Debug ILRepack merged plugin assembly from Plugin Registration tool
I'm trying to debug plugin assembly that been merged via ILRepack, but Plugin Registration tool's Replay Plug-in Execution throws an error related to System.Text.Json:
Unhandled Exception: System....
2
votes
0
answers
964
views
IL-Repack Dealing with Third Party Dependencies
I had a working IL-Repack post-build task in my project. Recently, I updated a number of libraries and now I have an issue that I cannot figure out.
My project uses Newtonsoft.Json and I have updated ...
0
votes
0
answers
1k
views
ILMerge Or ILRepack add assembly reference to dll
I am creating a custom package using a nuspec where i specify a dependency.
I am also merging several dlls into one dll.
I need to reference an external dll so that the merged dll doesn't include the ...
0
votes
0
answers
102
views
XAMARIN - Mono.Android - Class ref in pre-verified class resolved to unexpected implementation
I've used ILRepack to merge a bunch of DLLs into a final Merged.dll with
ILRepack.exe /verbose /out:C:\..\.Merged.dll /wildcards *.dll /lib:C:\.MonoAndroidPath.\v8.1
Some of the merged DLLs use Mono....
0
votes
0
answers
309
views
XML Serialization class is inaccesible due to its protection level and ILRepack
I am getting the following error:
is inaccessible due to its protection level. Only public types can be
processed. at System.Xml.Serialization.TypeDesc.CheckSupported()
on a model class that I ...
2
votes
0
answers
266
views
Type casts no longer work after ILRepack
I am trying to create a single executable from the binaries of a project. This is what I have:
A shared library dll, written in F#, I will refer to it by A
A library dll, written in C# that implements ...
3
votes
0
answers
805
views
Using ilrepack in a .netstandard project to merge all assemblies from a nuget package
I'm building a public nuget package from a .NetStandard project. This project uses a private nuget package (from a private nuget server) targeting .netStandard too.
Before switching to .net standard, ...