Developing WPF .NET 3.5 application for Win7 and Win 8 OS

这一生的挚爱 提交于 2019-12-12 01:15:27

问题


I am developing WPF .NET application for Win7 and Win8 OS.

For now I am using .NET 3.5 platform, as I understood Win7 comes with .Net 3.5 integrated while Win8 comes with .Net4.

I want that the user will have the fastest installation with minimum pre-installations. What is the best way to do it? does the user with Win8 have to install .NET 3.5?


回答1:


Using 3.5 would make it work in Win7, but if the users don't have Internet or a DVD they can't install .net 3.5 in Windows 8. Because you can't include .Net 3.5 files in your setup you run into the isse that Win8 users can't use your tool.

Instead, you should use .Net 4.5.2 which also works in Windows 7. With .net 4.5.x you can add the redistributable offline Installer to the Setup of your application so that it will work fine on Windows 7 and 8.




回答2:


Win8 doesn't include .Net 3.5 automatically, so if a application require specific 3.5 version you have install 3.5 or unable it from control panel. Here is example how you can do this.



来源:https://stackoverflow.com/questions/24103906/developing-wpf-net-3-5-application-for-win7-and-win-8-os

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