.net - 如何将 .net 错误消息语言更改为英语

标签 .net visual-studio-2012 windows-7-x64

我使用的是 VS2012、.net 4.5 和 Win7 Professional。 Win7 是土耳其语,现在我收到土耳其语的错误消息!在 Win7 Professional 中,无法安装/卸载语言包。是否可以在不重新安装 VS 或 .net 包的情况下更改错误消息语言?

最佳答案

这对我有用:

开始 > 配置面板 > 语言和地区 > 管理

在“非 unicode 程序的语言”选项卡中,选择英语。

您还可以选择设置 CultureInfo在您调试/记录的代码部分。只需玩一下全局化设置,例如:

System.Threading.Thread.CurrentUICulture = new System.Globalization.CultureInfo("en-US");

或者
Thread.CurrentThread.CurrentUICulture = new CultureInfo("en-us");

祝你好运!

关于.net - 如何将 .net 错误消息语言更改为英语,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20005210/

相关文章:

c# - EF 6,从数据库更新模型不支持对象上下文?

c# - 从 C# 中的 App.config 文件中读取 key

asp.net - 点网核心 : Object reference not set to an instance of an object

batch-file - 如何使用 .bat 文件重新启动进程

c# - 如何获取有关设备驱动器的信息

.net - Start-Process/System.Diagnostics.Process ExitCode 是 $null with -NoNewWindow

C++/VS 2012 - 多项目解决方案 : Linker errors in one project but not another

c# - 如何在 Visual Studio 2012 中添加引用 `Microsoft.TeamFoundation.TestImpact.Client.dll`?

visual-studio-2012 - 用于验证的 Visual Studio 2012 目标架构不起作用

visual-studio-2008 - 当我按通讯座时,Windows无法识别设备仿真器