How to use Visual Studio .NET setup and deploy .NET Framework

本文介绍如何在目标机器上安装.NET Framework并部署.NET应用。部署前,需确保目标机器已安装.NET Framework,否则需手动安装或使用Setup.exe进行安装。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

This document introduces hwo to distribute .NET application with .NET Framework.

Before install .NET application, the target machine need to fulfil the condition that the machine has already installed the .NET Framework. If this is not the case, the application will not be able to work. And Microsoft Visual Studio .NET setup and deployment project can not install .NET Framework automatically.

[@more@]
  • Before deploy Visual Studio .NET application, the target machine has to be installed .NET Framework in advance. When you use Visual Studio .NET to create Windows Installer package, the package contains a MsiNetAssemblySupport. This condition will determine whether the machine has installed Framework or not. Fail to find .NET Framework will terminate the install process, and you will receive the following error message: This setup requires the .NET Framework. Please install the .NET Framework and run this setup again.

You can not put the Framework into the installation package, and you need to install it seperately. You can have following two ways to install the framework.

  • Ask user to install the framework menually before install the application.
  • Download the Setup.exe wizard program. Use Setup.exe to install the .NET Framework by running Dotnetfx.exe. After installing .NET Framework, the Setup.exe will run the Windows Installer package for you.

Using Setup.exe and Visual Studio .NET to distribute .NET Framework

You may want to pack the application in order to intall the .NET Framework first and then the .NET application Windows Install package (.msi file). Setup.exe wizard can be download from MSDN wetsite. And you need to modify the Settings.ini in order to target the postion of redistribute package and installer.

Using Setup.exe

You have to delete the install wizard from project first:

  • Click deploy project in the solution views.
  • Click property in the project menu.
  • Set none

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/553558/viewspace-893004/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/553558/viewspace-893004/

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值