visual studio(2010)包含Net Framework 4.0 [英] visual studio(2010) to include Net Framework 4.0

查看:165
本文介绍了visual studio(2010)包含Net Framework 4.0的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有什么方法可以为.net Framework 4.0提供安装程序

我的意思是安装安装程序时自动下载或安装客户端的任何方法.

Is there any way to provide .net framework 4.0 with setup

i mean any way to client download or install automatically install while setup is install.

推荐答案

使用Visual Studio安装程序项目.安装程序项目可以自动在您的安装包中包括.NET Framework安装程序:

这是Windows窗体应用程序的分步指南:

1创建安装项目.您可以使用安装向导.
2选择项目类型.
3选择输出.
4点击完成.
5打开安装项目属性.
6选择包含.NET框架.
7构建设置项目
8检查输出
Use Visual Studio Setup project. Setup project can automatically include .NET framework setup in your installation package:

Here is my step-by-step for windows forms application:

1 Create setup project. You can use Setup Wizard.
2 Select project type.
3 Select output.
4 Hit Finish.
5 Open setup project properties.
6 Chose to include .NET framework.
7 Build setup project
8 Check output


是的,但是当然部署和构建应用程序与Visual Studio无关.它不参与.是的,构建也是:MSBuild和编译器包含在(可再发行的).NET Framework中,因此Visual Studio本身不会编译任何东西,并且不需要构建,这是通过MSBuild(或仅通过编译器完成的,但这是较低级别的,具有异国情调.)

因此,剩下的问题是:如何在产品中部署.NET Framework?解释如下:
http://msdn.microsoft.com/en-us/library/6hbb4k3e%28v = vs.100%29.aspx [ ^ ].

—SA
Yes, but of course deployment and even build of the application has nothing to do with Visual Studio; it does not participate. Yes, build, too: MSBuild and compilers are included in (re-distributable) .NET Framework, so Visual Studio does not compile anything by itself and not needed for the build, which is done via MSBuild (or via just the compiler, but this is lower-level and kind of exotic).

So, the remaining question is: how to deploy the .NET Framework with the product? This is explained here:
http://msdn.microsoft.com/en-us/library/6hbb4k3e%28v=vs.100%29.aspx[^].

—SA


这篇关于visual studio(2010)包含Net Framework 4.0的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆