安装项目中的错误 [英] Error in setup project

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

问题描述

我已经为我的应用程序创建了一个安装项目,并为其选择了以下先决条件:

1. Microsoft .NET Framework 4(x86和x64)
2. SQL Server 2008 Express
3. Windows Installer 4.5

但是在构建时收到以下警告:

项目中.NET Framework的目标版本与.NET Framework启动条件版本".NET Framework 4客户端配置文件"不匹配.在高级编译选项对话框(vb)或应用程序页面(C#,F#)中,更新.NET Framework启动条件的版本以使其与.NET Framework的目标版本相匹配.

Hi, i have created a setup project for my application and select these prerequisites for it:

1. Microsoft .NET Framework 4 (x86 and x64)
2. SQL Server 2008 Express
3. Windows Installer 4.5

but i receive following warning when i build it:

The target version of the .NET Framework in the project does not match the .NET Framework launch condition version '' .NET Framework 4 client profile''. Update the version of the .NET Framework launch condition to match the target version of the .NET Framework in the Advanced compile options Dialog Box(vb) or the Application page(C#, F#).

推荐答案

尝试通过更改启动条件配置文件.您需要将框架启动条件版本更改为.Net Framework,而不是Framework Client Profile.
否则,您可以选择Framework Client Profile作为默认的前提条件(这是默认选项),而不是.Net Framework.

1)选择安装程序项目

2)单击双筒望远镜顶部的图标-它将加载发射条件"配置文件.

之后,请按照步骤此处 [
Try by changing the Launch Conditions Profile. You need to change the framework launch condition version to .Net Framework instead of the Framework Client Profile.
Or else you can choose the Framework Client Profile as a prerequisite (which is the default) instead of the .Net Framework.

1) Select the installer project

2) Click on binoculars the icon on top - it will load the Launch Conditions Profile.

After that follow the steps here[^] for more details on how to change the launch profile.


这是因为为安装程序选择的必备.Net框架"与项目目标框架"不匹配.

请查看下面的链接以获取更多详细信息.
http://social.msdn.microsoft.com/Forums/zh_CN/winformssetup/thread/5167197a-12a5-473e-940a-569e92f08f37
It''s because your "Prerequisite .Net Framework" selected for Installer does not matching with your "Project Target Framework".

Have a look at below link for more details.
http://social.msdn.microsoft.com/Forums/en/winformssetup/thread/5167197a-12a5-473e-940a-569e92f08f37


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

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