Questions tagged [fody-costura]

Fody add-in for embedding references as resources

Fody add-in for embedding references as resources.

106 questions
3
votes
0 answers

Why doesn't Fody/Costura embed my Interop dll?

I'm using Costura.Fody to embed referenced DLLs as resources in my EXE. It works fine except it's not embedding Interop.IWshRuntimeLibrary.dll. How can I figure out why? I'm using ILSpy to examine the EXE, which is how I know all of my…
markltx
  • 689
  • 8
  • 16
2
votes
0 answers

Make a single exe cefsharp application - embedding libcef.dll - costura.fody

I have tried many things before I found costura.fody and I were hoping that would be the solution to create a single file exe of a cefsharp application that I'm doing. So the help file says set copy local to true of the file you want to embed in the…
andla007
  • 21
  • 2
2
votes
2 answers

How to include grpc_csharp_ext.x86.dll with Fody/Costura?

Looking forward to this article and issue: 1) https://idmedia.no/general/including-sqlite-interop-dll-into-your-c-project/ 2) https://github.com/Fody/Fody/issues/673 Could not resolve an issue. Did anyone have a similar issue? Costura/Fody can not…
I.Step
  • 613
  • 6
  • 22
2
votes
0 answers

Why does a library generated by Costura.Fody require DLL it has included inside?

We are using Costura.Fody to pack all our binaries into a single DLL. It has a VS solution with a single project and we pack all its dependencies to it. As long as this project was single within the solution, it was working. But recently we moved…
DomJourneyman
  • 65
  • 2
  • 9
2
votes
0 answers

Nunit test project net45 using Costura.Fody success in Release and fail in Debug with exception

Environment: vs 2017.9 /net45 using Costura.Fody v3.3.3 In Nunit test project I run the command: dotnet test -f net45 -c Debug //test fail dotnet test -f net45 -c Release //test success I get the error OneTimeSetUp:…
M.Hassan
  • 10,282
  • 5
  • 65
  • 84
2
votes
1 answer

How to resolve error when using Nlog with Costura Fody

I am using Nlog and recently decided to use Fody/Costura to embed my DLLs in the final executable. I noticed that when launching and creating the Logger using the recommended instance declaration below that I am getting an exception when calling…
Bill Woltz
  • 23
  • 3
2
votes
0 answers

Fody Costura and embedding PDBs

So, I've got a small console app and I've used Fody/Costura to embed all referenced dlls into it So far so good. The docs for Costura says that it'll also embed the PDBs into the exe, and it appears to do that. BUT... If I force an exception in the…
DarinH
  • 4,868
  • 2
  • 22
  • 32
2
votes
1 answer

Unable to load embedded dependencies from the GAC

I made an HttpModule that I'm adding to the GAC and then registering it in my web.config. I used Fody Costura to embed dependencies. The output in my bin folder consists of only one dll, one .config and one .pdb (Because all the dependencies are…
Jorge Zuverza
  • 885
  • 8
  • 26
2
votes
1 answer

ServiceStack and Fody Costura

I'm pretty new to ServiceStack, so apologies in advance if the nomenclature is not 100%. I create a test self-hosted application and the ServiceStack Service was in the same assembly as the mainline code. All good. I then moved the code to…
Craig D
  • 487
  • 1
  • 5
  • 17
2
votes
1 answer

Problems merging OpenCV assemblies with Costura

Currently, I have a C++/CLI wrapper project which references some OpenCV dlls. The wrapper project is then referenced by a C# library project I created. Using Costura, the wrapper gets correctly merged within my C# library but the OpenCV dlls are…
WBuck
  • 5,162
  • 2
  • 25
  • 36
2
votes
3 answers

How to decompress a Fody.Costura packed assembly

A friend of mine gave me the challenge to decompress an assembly that was packed with Fody.Costura. The assembly has a dll dependency that was embedded as a resource. I tried to extract this .zip resource with dotPeek and decompress it with this…
Christian Klemm
  • 1,455
  • 5
  • 28
  • 49
2
votes
0 answers

How to set a resource in Visual Studio to "Embedded"? Persistence is greyed out

I want to build a single executable file(exe) of a program I wrote, but this uses an unmanaged library from a third party. Costura.Fody allows to embed unmanaged libraries by adding them to a costura32 or costura64 folder and then as an embedded…
rabejens
  • 7,594
  • 11
  • 56
  • 104
2
votes
0 answers

C# assembly embedding and assembly resolution

I am attempting to build a Styles and Controls assembly that other engineers at my office can use. For example, I have a type (MSpinner) derived from the WPFToolKit's DoubleUpDown control. I have a set of styles for this MSpinner control as well. In…
sbrett
  • 606
  • 4
  • 20
2
votes
3 answers

Renaming project → "Could not resolve this reference. Could not locate the assembly"

Everytime I build my solution I get the following warning: Warning Could not resolve this reference. Could not locate the assembly "WordAPI". Check to make sure the assembly exists on disk. If this reference is required by your code, you may…
Alexander Derck
  • 13,818
  • 5
  • 54
  • 76
2
votes
1 answer

How to reference embedded dll from single Costura Fody dll

I installed Costura Fody via Nuget and embedded the appropriate dll's into one single dll. From the output window I can see that this is a success I reference the created dll in the project I want to use it and remove the references to the…
Andre Lombaard
  • 6,985
  • 13
  • 55
  • 96