Assigning File Types to ClickOnce Applications

Posted by Jonathan Allen  From/InfoQ

ClickOnce is a deployment technology used primarily for WinForms based applications. It supports automatic updates and can be launched from either a website or the Start menu. When using the former, query string arguments in the URL are passed to the application.

Using a technique described by Mike Wade, file types can also be associated with ClickOnce applications. This is done by adding a file association tag to the applications manifest file. For Visual Studio users, this means adding an app.manifest file, which will be automatically merged into the full manifest when publishing.

Mike Wade lists a number of rules that must be followed,
  • Values must be given for all 4 xml attributes
  • File associations only work for pure ClickOnce applications. That means that browser-hosted applications and Office documents can't take advantage
  • The application must be targeting the 3.5 version of the .NET Framework
  • The application must be full trust
  • The application must be installed (not run from web)
  • There is a limit of 8 file associations per application


友情提示:此文并不表示本站肯定持有相同观点,转载请注明出处。
 您可能对 [Visual Studio.NET] 的这些文章也感兴趣:

.Net 2.0 新功能:重构(Refactoring)  让.Net 程序脱离.net framework框架运行
TFS 2008 中文版下载及安装完整图解  Enterprise Library 4.0 - May 2008 发布了
微软开发主管临别诤言  Visual Studio 2008改进版体验
.NET泛型中的协变与逆变  邮件发送类,支持HTML格式,支持优先级设置
.NET企业级架构实战之一:Spring.NET框架综述  Mono 1.2.6针对OS X的改变
View the .NET Source Code in VS 2005  Windows Server 2008评估版发布
图形化权限的设计与实现[蓝图篇]  性能问题依旧困扰着VS 2008
.NET平台中英文编程  SCSF 系列:Smart Client Software Factory 启动过程详解
GTK#的可定制控件类库——Holly Widgets  使用jmail组件发送电子邮件(C#)
让你的VS2005支持离线调试.Net Framework2.0  Ultimate List of Free Windows Software from Microsoft