How do I remove unnecessary resources from my project?

前端 未结 10 1635
深忆病人
深忆病人 2021-02-12 22:55

I am working with a very big project (a solution that contains 16 projects and each project contains about 100 files).

It is written in C++/C# with Visual Studio 2005.

10条回答
  •  逝去的感伤
    2021-02-12 23:12

    If your code contains dynamic loading of resources (e.g. via strings) at runtime, then there is no way to automatically determine which resources can be safely removed from the source. A dynamic loading statement could load any resource.

    Your best bet is to start with your trimmed down version of the app, run it, and identify which resources are missing when you test it. Then add them back in and retest.

提交回复
热议问题