Problems with Fody / Costura

To start: I'm a complete newbie. I have two projects in one solution. One project is a console application that is called from a window form application. Now I want to add them to one executable file. I was told that this is possible with Fody / Costura. I downloaded it and added the IncludeAssemblies code to the xml file. However, if I go to the debug folder, they still remain two executable files separately (in addition to some new generated files) Does the executable save in another place or is something wrong?

+7
exe c # fody fody-costura
source share
3 answers

Starting with version 1.5, Costura automatically cleans the catalog.

To disable this, the setting now has a parameter. https://github.com/Fody/Costura#disablecleanup

+7
source share

Perhaps Fody / Costura has already integrated the individual DLL files (.NET assemblies) into an EXE. He does not care to remove them for you. You can easily check if this is really happening by simply copying the executable from the output directory along with any other dependencies other than assemblies, and see if it executes.

+5
source share
<Target AfterTargets="AfterBuild;NonWinFodyTarget" Name="CleanReferenceCopyLocalPaths" > <Delete Files="@(ReferenceCopyLocalPaths->'$(OutDir)%(DestinationSubDirectory)%(Filename)%(Extension)')" /> </Target> 

in the project file should also work to clear duplicates

+1
source share

All Articles