应用程序需要一键式部署程序包中的4.0 Framework [英] App requires 4.0 Framework in One click deployment package

查看:49
本文介绍了应用程序需要一键式部署程序包中的4.0 Framework的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好!

调用我的一键式程序包时收到消息应用程序需要4.0完整版或其他兼容的.Net框架".

有人碰到这个吗?有关如何解决此问题的任何想法?

TIA
EddyG

Hi All!

Getting a message "Application requires version 4.0 full or other compatible .Net framework" when my one click package is invoked.

Anyone run across this? Any ideas on how to resolve this?

TIA
EddyG

推荐答案

默认情况下,Visual Studio 2008和2010中的应用程序使用".NET Framework 3.5/4.0客户端配置文件"作为目标框架.客户端配置文件是实际的完整点状网框架的轻量级版本.因此,如果您的应用程序使用的库不是客户端配置文件的一部分,则会引发异常.

打开项目属性,然后将Target框架更改为.NET Framework 4 \ 3.5.还应将.Net Framework作为安装项目中的先决条件.

这应该可以解决问题.
By default the applications in Visual Studio 2008 & 2010 use ".NET Framework 3.5/4.0 Client Profile" as target framework. Client Profile is a light weight version of the actual full blown dot net framework. Therefore if your application uses libraries which are not part of client profile, It would raise an exception for that.

Open the project properties and change the Target framework to .NET Framework 4 \ 3.5 whichever you are using. Also make .Net Framework as prerequisite in the setup project.

This should solve the problem.


这篇关于应用程序需要一键式部署程序包中的4.0 Framework的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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