はつねの日記

Kinect, Windows 10 UWP, Windows Azure, IoT, 電子工作

同じソースコードを.NET Core 3.1と.NET 5でビルドした結果

[EN]

Have you guys started using .NET 5, which was GA last November?
docs.microsoft.com
I am preparing to migrate my WPF application to .

.NET Core 3.1, I found that the size of the exe was reduced even though I didn't modify the source code at all.

.NET Core 3.1 (171KB) -> .NET 5 (140KB)

.NET 5 (140KB) It became about 20% slimmer.

[JP]

昨年11月にGA(正式リリース)された.NET 5つかっていますか?
docs.microsoft.com
私は.NET FrameworkWPFアプリを.NET 5 WPFへ移行する準備をゆるゆると進めています。

以前、.NET Core 3.1でつくった小さなツールを.NET 5でビルドしてみたら、ソースコードは一切手を入れてないのに作成されたexeサイズが減っていたので報告します。

.NET Core 3.1 (171KB) → .NET 5 (140KB)

20%くらいスリムになりました。