Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Problems with Fody/Costura

To start with: I'm a complete beginner. I have two projects in one solution. One project is a console application, which is called from the windows form application. Now I want to add these to one executable. I was told that it was possible with Fody/Costura. I downloaded it and added the IncludeAssemblies code to the xml file. However, if i go to the debug folder, ther are still the two executables seperately (apart from some new generated files) Does the executable save in another place or did i do something wrong?

like image 218
user3492582 Avatar asked Apr 03 '14 12:04

user3492582


People also ask

How do I install costura FODY?

Install Costura. Fody from Nuget Pacakges. You can simply right click on References, and go to Manage Nuget Packages, then search for Costura. Fody, and install it.

What is costura?

Translation of costura – Portuguese–English dictionary needlework [noun] work done with a needle ie sewing, embroidery etc. seam [noun] the line formed by the sewing together of two pieces of cloth etc. seam [noun] the line where two things meet or join. sewing [noun] the activity of sewing. sewing [noun] work to be ...


2 Answers

As of version 1.5 Costura automatically cleans up the directory.

To disable this there is now a setting in the config. https://github.com/Fody/Costura#disablecleanup

like image 191
Cameron MacFarland Avatar answered Oct 19 '22 21:10

Cameron MacFarland


It could be that Fody/Costura has already merged the separate DLL files (.NET assemblies) into the EXE. It doesn't take care of deleting those for you. You can easily check if this is the case by simply copying the executable out of the output directory along with any other dependencies besides the assemblies, and see if it runs.

like image 39
Jonas Avatar answered Oct 19 '22 21:10

Jonas