简体   繁体   English

我可以在Visual Studio中配置编译器以对所有非本地化字符串给出警告/错误吗?

[英]Can I configure the compiler in Visual Studio to give warnings / errors for all non-localized strings?

I would like the compiler to detect all non-localized strings in my solution. 我希望编译器在解决方案中检测所有非本地化的字符串。 This means any string in an .aspx or .cs file that doesn't come from a resource file. 这意味着.aspx或.cs文件中的任何字符串都不来自资源文件。

Visual Studio 2010's Code Analysis can do this. Visual Studio 2010的代码分析可以做到这一点。 (Although not for ASPX files) (尽管不适用于ASPX文件)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM