.NET 2.0安装项目在Visual Studio 2008 [英] .NET 2.0 Setup Project in Visual Studio 2008

查看:93
本文介绍了.NET 2.0安装项目在Visual Studio 2008的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我开发一个双赢窗体应用程序针对.NET 2.0。所有这一切都是在Visual Studio 2008 SP1。

I developed a win forms app targeting .net 2.0. All of this is in Visual Studio 2008 sp1.

我这样做是因为我没有真正需要的应用程序3.0+功能。我不想让客户端必须安装一个巨大的框架时,他们可以只安装一个半巨大之一。

I did this because I didn't really need 3.0+ features in the app. and I didn't want the clients to have to install a gigantic framework when they could just install a semi-huge one.

好吧,当我创建一个安装项目的应用程序,构建它,安装它,它要我安装.NET 3.5。我瞄准2.0在这两个窗口应用程序和安装项目。

Well, when I create a setup project for the app, build it, install it, it wants me to install .net 3.5. I am targeting 2.0 in both the windows app and the setup project.

是否有可能使安装项目以2.0只有prerequisite在VS 2008中?

Is it possible to make the setup project with only a prerequisite of 2.0 in VS 2008?

推荐答案

是的。默认情况下在VS2008安装项目将要包括的3.5可再发行。你需要切换,为2.0可再发行。请尝试以下

Yes. By default a setup project in VS2008 will want to include the 3.5 redistributable. You need to switch that to the 2.0 redistributable. Try the following

您安装项目应该有一个在Solution Explorer查看时,被称为检测到的相关性文件夹中。值之一将是Microsoft .NET框架。双击该节点,这将打开启动条件页面上。将有一个名为.Net框架树中的一个节点。选择并按下F4键,弹出属性窗口。

Your setup project should have a folder called "Detected Dependencies" when viewed in Solution Explorer. One of the values will be "Microsoft .Net Framework". Double click on that node which will open up the "Launch Conditions" page. There will be a node in the tree named ".Net Framework". Select that and hit F4 to bring up the properties window.

在属性窗口中会出现一个名为版本的值3.5.XXX行。这是一个组合框。它切换到2.0.50727值。

In the Properties window there will be a row named "Version" with the value 3.5.XXX. This is a combo box. Switch it to the 2.0.50727 value.

这篇关于.NET 2.0安装项目在Visual Studio 2008的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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