dotnet / ILMerge

ILMerge is a static linker for .NET Assemblies.
MIT License
1.23k stars 170 forks source link

WindowsForm Titlebar and Borders shrink #32

Open Pilzinsel64 opened 6 years ago

Pilzinsel64 commented 6 years ago

Hello,

I merge my assamblies using the nuget package. Since I do that, all Windows Forms with BorderStyle-Property "FixedToolWindow" or "FixedSingle" or "FixedDialog" have a smaller Title Bar and a bit smaller Border Size then normal.

This is how it looks before merge with ILMerge (BorderStyle = FixedDialog): https://i.imgur.com/2jZ11yh.png

And this is how it looks after ILMerge (BorderStyle = FixedDialog): https://i.imgur.com/WhB6vVn.png

I am using Visual Studio 2017 on Windows 10. My projects using .Net Framework 4.5.

Do you have any ID how to solve the problem easlily?

Thanks

mike-barnett commented 6 years ago

I've never heard of it causing this kind of problem. As a first step, if you can send me the log file generated when using the /log option, then I can look at that.

jnm2 commented 6 years ago

Could a manifest or app config be involved?

hrumhurum commented 6 years ago

This is caused by the unexpected change of subsystem version in PE header.

mike-barnett commented 6 years ago

Okay, if you can give me more details then I can look into it.

Pilzinsel64 commented 6 years ago

Here is the log file: ilmergelog.log

Hope, that you can find the problem.