Questions tagged [fody-costura]

Fody add-in for embedding references as resources

Fody add-in for embedding references as resources.

106 questions
5
votes
2 answers

Any way to get VS (2010) to accept PDBs after using ILMerge/Costura to combine assemblies?

This question has pertinence beyond my own case because anyone who has a localized application and has to deliver a standalone EXE has this problem-- they will want to use ILMerge (or Costura or some homebrew solution) to put localization DLLs (or…
4
votes
1 answer

Can't get costura.fody to embed dll into exe

I try to embed the dll of a class library into my exe. I use visual studio 2019 and .net 5. I created two projects in one solution one is class library (dll), and the second is console application both targeted for .net core 5. I selected the…
Jake
  • 98
  • 2
  • 5
4
votes
2 answers

Fody Costura Does Not Embed SkiaSharp DLL

I created a solution that uses the Costura.Fody nuget package to merge referenced assemblies as embedded resources. I want this so that I can create a single exe for my application. This was working great for a while until I added a reference to…
user2481095
  • 2,024
  • 7
  • 22
  • 32
4
votes
1 answer

"SignTool.exe not found" when debugging in Visual Studio 2015

I was writing a simple program in Visual Studio that requires an external library. When I debug it everything went smoothly. Since I want to distribute the exe alone without the dlls, I installed Costura, clear all the previous builds and then…
Paskins Loe
  • 166
  • 1
  • 1
  • 6
4
votes
1 answer

c#: How to embed exe file into resources?

I use Costura.Fody. There is an app Test.exe which runs pocess internalTest.exe this way: ProcessStartInfo prcInfo = new ProcessStartInfo(strpath) { CreateNoWindow = false, UseShellExecute = true, …
ZedZip
  • 5,794
  • 15
  • 66
  • 119
4
votes
5 answers

Disable Fody Costura

Is there a way to disable Fody Costura? I need to perform some troubleshooting and I want to know that Fody Costura is not part of the problem. I would prefer to disable it instead of removing the nuget which would be one solution. Removing…
Magnus Lindhe
  • 7,157
  • 5
  • 48
  • 60
4
votes
1 answer

Embed app.config into Assembly

Is there any existing solution to embed the app.config file into the resulting assembly? I know there's costura for embedding DLL's into the assembly (costura also provides a really nice VS plugin!) Some equalient project for the app.config?
GameScripting
  • 16,092
  • 13
  • 59
  • 98
3
votes
0 answers

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.Fody: for merging multiple DLLs into a single…
stgerb
  • 31
  • 5
3
votes
0 answers

WPF .NET CORE 3.0 packing with Costura.Fody

When I migrate WPF Project to .NET CORE 3.0 and try to pack assemblies using Costura I am getting the following error: The target process exited without raising a CoreCLR started event. Ensure that the target process is configured to use .NET Core.…
rvnlord
  • 3,487
  • 3
  • 23
  • 32
3
votes
0 answers

How to exclude documentation files from Fody/Costura?

When using Fody/Costura in my solution, the resulting executable is much larger than the combined size of the assemblies that have Copy Local option set to True. When I inspect the debug and release directories I see a bunch of XML files files that…
Rno
  • 784
  • 1
  • 6
  • 16
3
votes
0 answers

Costura.Fody not embedding .pdb

I'm using Costura.Fody to embed my whole application into one .exe file. But for some reason, the .pdb is not getting embedded: On the project's README it denotes that there is a parameter called IncludeDebugSymbols to be specified in the…
derekantrican
  • 1,891
  • 3
  • 27
  • 57
3
votes
1 answer

Costura not loading Native Dll

I am unable to get Costura to load a Native dll that my project needs to run. This is a full native dll so it is not a reference in the project. I have added the dll to the costura32 folder in my project and set it as an embedded resource. When I…
John Hunter
  • 4,042
  • 4
  • 26
  • 35
3
votes
2 answers

Compiling unmanaged DLLs with exe

I am trying to embed a bunch of DLLs in my C# executable using costura fody, but I am having some trouble with 2 DLLs. I am using the NAudio library and the NAudio.Lame library, and while both DLLs compile perfectly into the exe, the NAudio.Lame…
Sofus Øvretveit
  • 323
  • 1
  • 3
  • 10
3
votes
1 answer

Handling deps.json due to embedded assembly using Costura.Fody

I have a .NET Core console application that references a .NET Standard assembly. I've also added a NuGet package for Costura.Fody and a FodyWeavers.xml file (see below). This builds fine and everything seems great, but when I try to run my app…
Broots Waymb
  • 4,713
  • 3
  • 28
  • 51
3
votes
0 answers

Utilize NuGet package with roslyn runtime compilation

Is it possible to utilize a NuGet package with runtime compilation? I have to compile an EXE at runtime, and want to embed referenced .dll into my final .EXE to end up with a single file. There is a NuGet package that does this at build time:…
stoXe
  • 313
  • 6
  • 13