How to lower the requirements for a WPF app Visual Studio Installer?

邮差的信 提交于 2019-12-12 03:45:22

问题


  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?


回答1:


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.



来源:https://stackoverflow.com/questions/4285501/how-to-lower-the-requirements-for-a-wpf-app-visual-studio-installer

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!