Force exceptions language in English

前端 未结 7 1858
孤城傲影
孤城傲影 2020-12-08 00:35

My Visual Studio 2005 is a French one, installed on a French OS. All the exceptions I receive during debug or runtime I obtain also in French.

Can I howev

7条回答
  •  无人及你
    2020-12-08 00:52

    For the good of all future users of your application, place this to the Main method:

    CultureInfo.DefaultThreadCurrentUICulture = Thread.CurrentThread.CurrentUICulture = CultureInfo.InvariantCulture;
    

    It will save them a good lot of trouble finding the English equivalent of a a badly translated error message.

提交回复
热议问题