简体   繁体   English

即使项目针对3.5 Client Profile,安装程序也会安装.NET framework 4 Client Profile

[英]Installer installing .NET framework 4 Client Profile even though project targets 3.5 Client Profile

I have a project that I've created in VS 2010. It initially targeted the 4.0 Client Profile framework but I've changed it so it now targets the 3.5 Client Profile framework. 我有一个我在VS 2010中创建的项目。它最初的目标是4.0 Client Profile框架,但我已经对其进行了更改,因此它现在面向3.5 Client Profile框架。 Mainly because most of my users will have it installed. 主要是因为我的大多数用户都会安装它。

However, when I publish it and run the installer on another machine, it insists on downloading the 4.0 framework client profile. 但是,当我发布它并在另一台机器上运行安装程序时,它坚持下载4.0框架客户端配置文件。

Any suggestions? 有什么建议么?

Steve 史蒂夫

Go to the project properties : Publish -> Prerequisites and check the version of the framework that you want installed. 转到项目属性:发布 - >先决条件,然后检查要安装的框架的版本。

在此输入图像描述

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM