7

After trying to embedded my projects dependencies with ILMerge first and Fody/Costura, I am facing the same problem with both.

The titlebar height seems to shrink. The VS2015 debug binary and release binary (without embedding dependencies) has the proper height and padding (as you can see on the screenshot). Including an icon doesn't solve the problem unfortunately. Do I have to include something additional in the Costura XML?

What am I missing?

.NET Framework 4.6

VS2015 Debug left - Costura build right

EDIT:

Apparently my issue was due to using FixedDialog as FormBorderStyle. With any fixed style the padding would vanish after embedding the dependencies. But it works perfectly fine with Sizeable (Default) as FormBorderStyle.

Arun Anson
  • 41
  • 7
zaub3r3r
  • 87
  • 4
  • You should try Jetbrains Dotpeek and open the application exe in it to see if there any changes in your layout code. – Ravi Patel Feb 06 '17 at 06:31
  • 1
    @RaviPatel Thanks for the suggestion, the layout code is exactly the same. However it seems to be an issue with FormBorderStyle, I updated my question accordingly. – zaub3r3r Feb 06 '17 at 19:40
  • I know its not the correct fix, but can you just add a space in front? – GreatJobBob Feb 11 '17 at 20:03

0 Answers0