查找未使用的资源在.NET解决方案 [英] Find Unused Resources in a .NET Solution

查看:170
本文介绍了查找未使用的资源在.NET解决方案的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你如何去寻找未使用的图标,图像,这可能已经成为孤儿,并且不再要求?在.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.

这篇关于查找未使用的资源在.NET解决方案的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆