.Net 项目中的拼写检查消息字符串
我想对我的项目中使用的所有消息字符串进行拼写检查。我如何使用 fxCop v 1.3.6 执行此操作? 或者您是否推荐任何其他微软工具(非第三方工具),因为我们公司不接受
请帮助... 我正在使用 FxCop v1.3.6 测试示例代码
// comment with invvvvls spellsig
private void Form1_Load(object sender, EventArgs e)
{
MessageBox.Show("This is incorret spelling");
}
I wanted to do a spell check for all the message strings used in my project. How can i do this using fxCop v 1.3.6??
Or do you recommend any other microsoft tool(not third party tool) as our company does not accept that
Pls help...
Sample code i am testing with FxCop v1.3.6
// comment with invvvvls spellsig
private void Form1_Load(object sender, EventArgs e)
{
MessageBox.Show("This is incorret spelling");
}
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您可以使用 Visual Studio 加载项(来自 VSCodeGallery)。它不是来自 Microsoft,而是 VS 的集成工具:
http://visualstudiogallery.msdn.microsoft.com/7c8341f1-ebac-40c8-92c2-476db8d523ce
另一方面,FxCop >= 1.36 肯定附带内部拼写检查器,如此处所述:<一href="http://davesbox.com/archive/2008/06/08/fxcop-now-ships-with-the-spell-checker-libraries.aspx" rel="nofollow">http://davesbox.com /archive/2008/06/08/fxcop-now-ships-with-the-spell-checker-libraries.aspx。据其所述,您应该能够通过以下方式启用它:Project ->选项->拼写和分析和设置“拼写语言”下拉列表,但我在 FxCop v4.5 RC 中找不到该下拉列表,因为我没有安装 v1.36 版本。
You can use a Visual Studio add-in (from VSCodeGallery). It's not from Microsoft but an integrated tool to VS:
http://visualstudiogallery.msdn.microsoft.com/7c8341f1-ebac-40c8-92c2-476db8d523ce
On the other hand, FxCop >= 1.36 definitely ships with internal spell checker as stated here: http://davesbox.com/archive/2008/06/08/fxcop-now-ships-with-the-spell-checker-libraries.aspx. As far as it states, you should be able to enable it with: Project -> Options -> Spelling & Analysis and settings the Spelling language drop-down, but I couldn't find the dropdown in FxCop v4.5 RC, as I don't have the v1.36 release installed.
尝试将字符串放入资源文件中。我正在使用 FxCop 版本 10,并且我注意到资源文件中的字符串经过了拼写检查。
Try putting your strings into a resource file. I'm using FxCop version 10, and I notice that strings in my resource files are spell-checked.