WPF .exe - large filesize

后端 未结 2 1642
栀梦
栀梦 2021-02-14 12:31

I am working on a WPF application and the .exe is found to be over 1.2MB in size. I would like to reduce the size of the final executable. The code is no more than a few 200 Kb,

2条回答
  •  长发绾君心
    2021-02-14 12:58

    This is probably an issue with embedded resources.

    If you added images or other resources to the project, even if you delete the file from the project, the resource will remain embedded.

    Check the Resources section of project properties.

    For example, did you add your images as bitmaps first and later deleted the files and added as png?

提交回复
热议问题