我需要将源代码中的所有硬编码字符串移动到 .resx 文件中.是否有工具可以帮助我找到 C# 代码中的所有硬编码字符串?
I need to move all the hard coded strings in my source code in .resx files. Is there a tool that could help me find all the hardcoded strings within C# code?
ReSharper 5 显然是一个选择,但必须设置许多技巧才能实现目标,
ReSharper 5 is obvious a choice, but many tips must be set so as to achieve your goals,
ReSharper
|选项
|代码检查
|检查严重性
|潜在的代码质量问题
|元素可本地化
设置为显示为错误
.然后你可以在解决方案面板的错误中找到几乎所有你需要的东西.
Then you can find almost all you need in Errors in Solution panel.
希望这会有所帮助.
这篇关于查找所有源硬编码字符串的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!