如何降低对 WPF 应用程序 Visual Studio 安装程序的要求? [英] How to lower the requirements for a WPF app Visual Studio Installer?

查看:80
本文介绍了如何降低对 WPF 应用程序 Visual Studio 安装程序的要求?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

  1. 我创建了一个 WPF 应用
  2. 我将其框架更改为 3.5 Client Profile
  3. 我创建了一个 Visual Studio 安装项目
  4. 我将 WPF 应用程序输出添加到安装项目
  5. 我什至将安装项目的先决条件更改为仅需要 3.5 版本
  6. 当我尝试在新的 Windows 7 机器上使用安装程序时,它告诉我:

<块引用>

此设置需要 .NET Framework 4.0 版

如何让它在不安装 4.0 的情况下运行?

解决方案

我在 http://rakesh-moss2007.blogspot.com/

<块引用>

在安装项目中,双击 Detected Dependencies 下的 Microsoft Net Framework.现在打开Net Framework的属性,选择任何低于4.0的框架.

  1. I created a WPF app
  2. I changed its framework to 3.5 Client Profile
  3. I created a Visual Studio Setup project
  4. I added the WPF app output to the Setup project
  5. I even changed the Setup project prerequisites to require only the 3.5 version
  6. When I try to use the Setup on a fresh Windows 7 machine it tells me:

This setup requires the .NET Framework version 4.0

How to make it run without installing the 4.0?

解决方案

I found the solution at http://rakesh-moss2007.blogspot.com/

In the setup project, double click on Microsoft Net Framework under Detected Dependencies. Now open the properties of Net Framework, and select any framework less than 4.0.

这篇关于如何降低对 WPF 应用程序 Visual Studio 安装程序的要求?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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