Configure Visual Studio to show error messages in English

后端 未结 9 996
清歌不尽
清歌不尽 2020-12-05 01:29

I\'m currently working in another country, and my PC has a non-English version of Windows installed. I don\'t care about this, but I do care a lot when Visual Studio shows e

9条回答
  •  不思量自难忘°
    2020-12-05 02:13

    As I posted in another thread, in my case it took only one line of code to change the Culture:

    System.Globalization.CultureInfo.DefaultThreadCurrentUICulture=System.Globalization.CultureInfo.GetCultureInfo("en-US");
    

    It changes default Culture of Main thread and new ones as well.

提交回复
热议问题