如何在VS 2010中更改安装文件的.NET框架版本? [英] how to change .NET framework version of a setup file in VS 2010 ?

查看:576
本文介绍了如何在VS 2010中更改安装文件的.NET框架版本?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我用C#winform创建了一个应用程序。我更改了目标框架版本2.0,并运行我的应用程序。

但问题是在我使用安装项目进行安装后,当用户在他的计算机上安装它时给出的消息下载.NET框架4.0,退出安装后..

我不想添加.NET framework 4.0来设置先决条件。
并且我也勾选了先决条件创建安装程序以安装先决条件组件中的选项。



如何创建在VS 2010中使用.NET Framework 2.0进行设置???





在此先感谢..



关注:

Jayanta。

Hi,
I created a application in C# winform. I changed the target Framework version 2.0, and run my application fine.
but problem is after i making setup with Setup project, when the user install it on his computer its given message that "download .NET framework 4.0", after that setup is exited..
I don't want to add .NET framework 4.0 to setup Prerequisite.
and also I tick out the option in Prerequisite "Create setup program to install Prerequisite components".

How to create setup with .NET Framework 2.0 in VS 2010???


Thanks in Advance..

Regard :
Jayanta.

推荐答案

虽然它是为VS 2008编写的,但我认为你绝对会得到一个这样做的想法:

使用Visual Studio 2008定向.NET Framework 2.0 [ ^ ]

还可以查看:

在Visual Studio安装项目中添加.NET Framework的先决条件 [ ^ ]
Though it is written for VS 2008 but i think you absolutely get an idea to do that:
Targeting the .NET Framework 2.0 with Visual Studio 2008[^]
Also could have a look at :
Add Prerequisites of .NET Framework in Visual Studio Setup Project[^]


这篇关于如何在VS 2010中更改安装文件的.NET框架版本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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