Visual Studio 2010中的安装项目需要.NET 4.0 [英] Setup Project in Visual Studio 2010 Requires .NET 4.0

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

问题描述

设置 设置项目 在Visual Studio 2010中,甚至删除了所有必需的 .NET 4.0 在计算机上仍然是必需运行安装。使用 ClickOnce 有效,但不是一种选择,但至少它不要求使用.NET 4.0。

When setting up a Setup Project in Visual Studio 2010 and even to I removing all the prerequistes .NET 4.0 is still required on the computer that runs the Installation. Deploying with ClickOnce works but is not an option, but at least it doesn't ask for .NET 4.0.

是否有一种方法可以在Visual Studio 2010中创建不需要安装.NET 4.0的安装项目?

编辑

这是我测试过的测试配置之一

This is one of the test configurations i've tested

这就是它的意思看起来当我运行setup.exe或.msi

And this is what it looks like when I run setup.exe or the .msi

推荐答案

在解决方案资源管理器中右键单击安装项目->视图->启动条件并设置适当的.NET Framework版本:

Right click on the setup project in the solution explorer -> View -> Launch Conditions and set the appropriate .NET framework version:

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

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