惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

博客园_首页
博客园 - 三生石上(FineUI控件)
爱范儿
爱范儿
Vercel News
Vercel News
aimingoo的专栏
aimingoo的专栏
The GitHub Blog
The GitHub Blog
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
A
About on SuperTechFans
H
Hackread – Cybersecurity News, Data Breaches, AI and More
量子位
Hugging Face - Blog
Hugging Face - Blog
C
Check Point Blog
Engineering at Meta
Engineering at Meta
有赞技术团队
有赞技术团队
月光博客
月光博客
M
MIT News - Artificial intelligence
V
Visual Studio Blog
Stack Overflow Blog
Stack Overflow Blog
阮一峰的网络日志
阮一峰的网络日志
D
DataBreaches.Net
I
InfoQ
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
The Cloudflare Blog
雷峰网
雷峰网

博客园 - 周克

te 关于博客园是否可以开展培训业务的几点思考 - 周克 - 博客园 【收集】Web开发工具 感情 程序 祭 Linq本质论(1) WinForm自动菜单合并 .Net开源控件 Client Settings FAQ .Net学习课件 WinFX更名为 .NET Framework 3.0. BindingSource.AddingNew事件可以给新增数据设置需要的值 可恶的AutoSizeColumnMode和DataError 介绍一个可以读取保存在程序集里面的图片资源的小工具 vs2005强类型主从表加上级联约束后无法添加从表数据 MSDN中文资料库WWF链接(updating...) 在WinForm中使用Membership WWF动态加载xoml文件 固定Asp.net2.0 Web项目的动态端口号 深圳.Net俱乐部2.26活动资源下载之——从SmartClient到ClickOnce
ClickOnce 部署多语言程序需要注意的地方
周克 · 2006-08-14 · via 博客园 - 周克

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.