久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

<tfoot id='At0Mf'></tfoot>
    • <bdo id='At0Mf'></bdo><ul id='At0Mf'></ul>

    1. <small id='At0Mf'></small><noframes id='At0Mf'>

      <legend id='At0Mf'><style id='At0Mf'><dir id='At0Mf'><q id='At0Mf'></q></dir></style></legend>
      <i id='At0Mf'><tr id='At0Mf'><dt id='At0Mf'><q id='At0Mf'><span id='At0Mf'><b id='At0Mf'><form id='At0Mf'><ins id='At0Mf'></ins><ul id='At0Mf'></ul><sub id='At0Mf'></sub></form><legend id='At0Mf'></legend><bdo id='At0Mf'><pre id='At0Mf'><center id='At0Mf'></center></pre></bdo></b><th id='At0Mf'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='At0Mf'><tfoot id='At0Mf'></tfoot><dl id='At0Mf'><fieldset id='At0Mf'></fieldset></dl></div>

      1. 在 .NET 框架中強(qiáng)制使用英語語言異常

        Forcing English language exceptions in .NET framework(在 .NET 框架中強(qiáng)制使用英語語言異常)

        1. <i id='PVRnK'><tr id='PVRnK'><dt id='PVRnK'><q id='PVRnK'><span id='PVRnK'><b id='PVRnK'><form id='PVRnK'><ins id='PVRnK'></ins><ul id='PVRnK'></ul><sub id='PVRnK'></sub></form><legend id='PVRnK'></legend><bdo id='PVRnK'><pre id='PVRnK'><center id='PVRnK'></center></pre></bdo></b><th id='PVRnK'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='PVRnK'><tfoot id='PVRnK'></tfoot><dl id='PVRnK'><fieldset id='PVRnK'></fieldset></dl></div>
          <legend id='PVRnK'><style id='PVRnK'><dir id='PVRnK'><q id='PVRnK'></q></dir></style></legend>
            <bdo id='PVRnK'></bdo><ul id='PVRnK'></ul>

            <small id='PVRnK'></small><noframes id='PVRnK'>

              <tbody id='PVRnK'></tbody>
          • <tfoot id='PVRnK'></tfoot>

                  本文介紹了在 .NET 框架中強(qiáng)制使用英語語言異常的處理方法,對(duì)大家解決問題具有一定的參考價(jià)值,需要的朋友們下面隨著小編來一起學(xué)習(xí)吧!

                  問題描述

                  在使用 ASP.NET MVC 時(shí),我注意到安裝在我的系統(tǒng)上的 .NET 框架發(fā)出的異常消息是德語的.我真的更喜歡英文信息,所以我可以在 SO 上發(fā)布它們.

                  While working with ASP.NET MVC, I have noticed that exception messages issued by the .NET framework installed on my System are in German. I'd really prefer English messages, so I can post them on SO.

                  我知道之前有人問過這個(gè)問題,但奇怪的是,在我的情況下,建議的解決方法似乎都不起作用.我已經(jīng)嘗試了以下方法:

                  I know this has been asked before on SO, but strangely enough none of the suggested workarounds seem to work in my case. I have already tried the following:

                  • 將我的 Windows 系統(tǒng)切換到英語語言環(huán)境并重新啟動(dòng) Visual Studio
                  • 設(shè)置工具 -> 選項(xiàng) -> 環(huán)境 -> 國際設(shè)置 -> 語言為英語"
                  • 在拋出異常之前將線程區(qū)域設(shè)置為英語,如下所示:

                  • switching my Windows system to an English locale and restarting Visual Studio
                  • Setting Tools -> Options -> Environment -> International Settings -> Language to "English"
                  • setting the thread locale to English right before the exception is thrown as follows:

                  Thread.CurrentThread.CurrentCulture = CultureInfo.CreateSpecificCulture ("zh-CN");Thread.CurrentThread.CurrentUICulture=new CultureInfo("en-US");

                  Thread.CurrentThread.CurrentCulture = CultureInfo.CreateSpecificCulture ("en-US"); Thread.CurrentThread.CurrentUICulture=new CultureInfo("en-US");

                  //調(diào)用我的錯(cuò)誤方法...

                  //call my faulty method...

                  那么,如何使 .NET 框架發(fā)出英語異常消息?是否有任何方法可以在每個(gè)解決方案甚至整個(gè)系統(tǒng)范圍內(nèi)執(zhí)行此操作?

                  So, how can I make the .NET framework issue English language exception messages? And is there any approach that does this on a per-solution or even system-wide basis?

                  在執(zhí)行我的單元測(cè)試時(shí)拋出異常.我不確定這是否是設(shè)置線程文化無效的原因.

                  The exception is thrown while excuting my unit tests. I am not sure if this is the reason setting the thread's culture had not effect.

                  推薦答案

                  我剛剛發(fā)現(xiàn),問題確實(shí)與測(cè)試項(xiàng)目不同.雖然我在實(shí)際項(xiàng)目中嘗試將 UI 語言設(shè)置為英語,但我在測(cè)試項(xiàng)目中沒有這樣做,這就是為什么在查看測(cè)試結(jié)果時(shí)異常消息仍然是德語的原因.

                  As I just found out, the problem was indeed related to having a different test project. While I have tried setting the UI language to English in my actual project, I did not do the same in the test project, which is why the exception messages were still in German when looking at the test results.

                  在拋出異常之前在測(cè)試方法中設(shè)置 UI 語言對(duì)我來說是訣竅.

                  Setting the UI language in the test method right before the exception is thrown did the trick for me.

                  這篇關(guān)于在 .NET 框架中強(qiáng)制使用英語語言異常的文章就介紹到這了,希望我們推薦的答案對(duì)大家有所幫助,也希望大家多多支持html5模板網(wǎng)!

                  【網(wǎng)站聲明】本站部分內(nèi)容來源于互聯(lián)網(wǎng),旨在幫助大家更快的解決問題,如果有圖片或者內(nèi)容侵犯了您的權(quán)益,請(qǐng)聯(lián)系我們刪除處理,感謝您的支持!

                  相關(guān)文檔推薦

                  Ignore whitespace while reading XML(讀取 XML 時(shí)忽略空格)
                  extracting just page text using HTMLAgilityPack(使用 HTMLAgilityPack 僅提取頁面文本)
                  C# extracting data from XML(C# 從 XML 中提取數(shù)據(jù))
                  Read a XML (from a string) and get some fields - Problems reading XML(讀取 XML(從字符串)并獲取一些字段 - 讀取 XML 時(shí)出現(xiàn)問題)
                  Reading large XML documents in .net(在 .net 中讀取大型 XML 文檔)
                  How to create folder in Google Drive using .NET API?(如何使用 .NET API 在 Google Drive 中創(chuàng)建文件夾?)
                    <bdo id='Dqrjy'></bdo><ul id='Dqrjy'></ul>
                      <tfoot id='Dqrjy'></tfoot>

                      • <small id='Dqrjy'></small><noframes id='Dqrjy'>

                          <tbody id='Dqrjy'></tbody>

                          <i id='Dqrjy'><tr id='Dqrjy'><dt id='Dqrjy'><q id='Dqrjy'><span id='Dqrjy'><b id='Dqrjy'><form id='Dqrjy'><ins id='Dqrjy'></ins><ul id='Dqrjy'></ul><sub id='Dqrjy'></sub></form><legend id='Dqrjy'></legend><bdo id='Dqrjy'><pre id='Dqrjy'><center id='Dqrjy'></center></pre></bdo></b><th id='Dqrjy'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='Dqrjy'><tfoot id='Dqrjy'></tfoot><dl id='Dqrjy'><fieldset id='Dqrjy'></fieldset></dl></div>
                          <legend id='Dqrjy'><style id='Dqrjy'><dir id='Dqrjy'><q id='Dqrjy'></q></dir></style></legend>
                            主站蜘蛛池模板: 天天操妹子| 国产精品自拍一区 | 午夜影院中文字幕 | 九九av| 免费视频成人国产精品网站 | 日韩欧美国产精品一区 | 99国产精品久久久久老师 | 一区观看| 亚洲视频在线免费观看 | 成人精品一区二区三区中文字幕 | 色频| 日韩久久久久久 | 国产精品视频一区二区三区 | 欧美亚洲国产一区 | 欧美一区二区在线 | 黄色毛片大全 | 天天干天天干 | 欧美影院 | 日韩中文视频 | 玖玖久久 | 手机三级电影 | 国产精品高潮呻吟久久 | 久久一区二区三区四区 | www.午夜| 一区二区在线 | 久久国产一区二区 | 久久久久成人精品亚洲国产 | 日本不卡高字幕在线2019 | 精品欧美乱码久久久久久 | 91成人午夜性a一级毛片 | 国产精品自在线 | 日韩中文字幕第一页 | 国产精品一区二区三区在线 | 性欧美精品一区二区三区在线播放 | 91精品一区 | 国产精品一区二区在线 | 色综合99 | 欧美黑人又粗大 | 黄色一级电影免费观看 | av在线一区二区三区 | 91在线免费视频 |