1

I would like to get a Single .EXE File so I'm using Costura.Fody.

After adding its NuGet package all of the DLLs are embeded to the .EXE file as expected. The problem is that I get all of those .xml files:

enter image description here

PS1: I'm using .NET Framework 4.6.1 (not able to use newer releases becouse of some of the DLLs).

PS2: Are those files required? Maybe I can delete them straight away...

Jaime Oro
  • 9,899
  • 8
  • 31
  • 39

2 Answers2

1

This is the default and sometimes frustrating behavior of costura.fody. If you notice, all of the following assemblies have their build option:

  • Generate Xml Documentation set to true

costura.fody takes those dlls and generates xml documentations that are oversizing your folder.

The solution is to exclude those files, look it up at the costura.fody github channel.

Barr J
  • 10,636
  • 1
  • 28
  • 46
0

I know the thread is a little bit older, my solution is to add in the build event a post-build command

del "$(TargetDir)*.xml"

I hope this help someone with the same problem