如何发布自己的.NET程序

Redistributing the .NET Framework Using Visual Studio .NET Deployment

This section describes some possible scenarios for distributing the .NET Framework redistributable, Dotnetfx.exe, using Visual Studio .NET 2003. Because Dotnetfx.exe is a significant run-time component, you must have administrator privileges in order to install it on a computer.

When you deploy applications created with Visual Studio .NET that depend on the .NET Framework, the .NET Framework must already be present on the target computer. The .NET Framework can be included in a setup executable file created using Visual Studio .NET deployment tools only if you have installed the Visual Studio .NET Framework Bootstrapper Plug-in; otherwise it must be installed separately.

Caution   Deployment projects for applications that reference the .NET Framework automatically add a merge module (dotnetfxredist_x86_ xxx.msm, where xxx represents the language code) in the detected dependencies folder. This merge module cannot be redistributed; it exists for internal use by the project to prevent individual .NET assemblies from being listed. It is excluded by default; attempting to include it will cause a build error.

There are four alternatives when deploying a .NET Framework application:

  • Install the Visual Studio .NET Framework Bootstrapper Plug-in on your development computer and use a Setup project to install the .NET Framework executable file along with your application.
  • Instruct the user to manually install the .NET Framework executable.
  • Use the Setup.exe Bootstrapper sample to install the .NET Framework redistributable package (Dotnetfx.exe) and then launch the Windows Installer package for your application.
  • Network administrators can redistribute Dotnetfx.exe using an electronic software distribution tool. For details, see Distributing Dotnetfx.exe Using an Electronic Software Distribution Tool in the white paper Redistributing the .NET Framework.

 

引用自:http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnnetdep/html/vsredistdeploy1_1.asp

无论如何,23M的那个runtime包是少不了的,而且VS2003还不能很方便的直接生成那样的安装包。不知道微软怎么想的。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值