问题
- I created a WPF app
- I changed its framework to 3.5 Client Profile
- I created a Visual Studio Setup project
- I added the WPF app output to the Setup project
- I even changed the Setup project prerequisites to require only the 3.5 version
- 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