查找未使用的资源在.NET解决方案解决方案、资源、NET

由网友(狱中囚)分享简介:你如何去寻找未使用的图标,图像,这可能已经成为孤儿,并且不再要求?在.resx文件字符串How do you go about finding unused icons, images, strings in .resx files that may have become 'orphaned' and are no...

你如何去寻找未使用的图标,图像,这可能已经成为孤儿,并且不再要求?在.resx文件字符串

How do you go about finding unused icons, images, strings in .resx files that may have become 'orphaned' and are no longer required?

推荐答案

这是没有任何信息的算法能可靠地计算。被检查的程序可以获取所有资源的清单,并做一些与他们一样,让几个图标的用户选择。

This is no information an algorithm can reliably compute. The inspected program could fetch a list of all resources and do something with them, like letting the user choose from several icons.

您最好的选择可能寻找到你选择的资源访问API的所有引用和人工检查的。使用的grep / SED 你也许可以减少你必须通过处理所有的简单的人手动检查网站其中,一个简单的字符串被使用。

Your best bet is probably to search for all references to your resource-access API of choice and inspect those manually. Using grep/sed you might be able to reduce the sites you have to inspect manually by handling all "easy" ones where a simple string is used.

阅读全文

相关推荐

最新文章