ClickOnce 部署多語言程式需要注意的地方

來源:互聯網
上載者:User
You can download your culture specific resources with ClickOnce.  There are a couple of ways to do this using Visual Studio.

1. Set 'Publish Language' property to 'English' or 'English (United States)' on the Publish Options Dialog.  The Publish Options dialog is available by clicking the button labeled 'Options...' on the Publish Property Page.  This will automatically deploy any resource files for the specified culture.  If you choose 'English' (the parent culture), then en and en-US, etc. resources will be deployed.  If you choose 'English (United States)' then only the en-Us resources will be deployed. 

When setting the Publish Language, the deployment culture is also set, which is a part of the application identity.  If you publish the same application to the same location and change the culture of the deployment manifest, some funky things will happen with the auto-update part of ClickOnce.  If you would like to deploy several resources (not all under the same parent culture), I suggest using method #2.

2.  Manually include the resource dlls to be deployed.  To do this, first open the Application Files Dialog.  The Applications Files Dialog is available by clicking the button labeled 'Application Files...' on the Publish Property Page.  Click the checkbox labeled 'Show all files'.  All the resource dlls for the project should now be seen and they will all have the Publish Status of 'Exclude (Auto)'.  Simply change the Publish Status of each resource dll you wish to deploy to 'Include'.  (You can multi-select rows and use the context menu to make this job easier.

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.