[英]What version of .Net framework should be targeted for end user apps
I am writing a little application in android which would have a server part in.Net (C#).我正在 android 中编写一个小应用程序,它在 .Net (C#) 中有一个服务器部分。 Obviously I want to target maximum number of end users, without having to deal with no framework installed issues.显然,我想以最大数量的最终用户为目标,而不必处理未安装框架的问题。
I was wondering which.Net framework should I target for my app?我想知道我的应用程序应该针对哪个 .Net 框架? Or which version may I expect to be most definitely there on a user's machine?或者我最希望在用户机器上安装哪个版本?
Thanks,谢谢,
Or which version may I expect to be most definitely there on a user's machine?或者我最希望在用户机器上安装哪个版本?
This really depends on your user base.这实际上取决于您的用户群。
If you want to target all platforms, you can't guarantee that any reasonable version will be there, so your deployment should include a check and installation of the framework.如果你想面向所有平台,你不能保证任何合理的版本都会在那里,所以你的部署应该包括框架的检查和安装。 Note that, if you know your user base is typically on Windows 7, for example, you can guarantee that they'll have .NET 3.5 , but if some are using XP, there is no guarantee, as no version was included with XP.请注意,如果您知道您的用户群通常在 Windows 7 上,例如,您可以保证他们将拥有 .NET 3.5 ,但如果某些人使用 XP,则无法保证,因为 XP 不包含任何版本。
Personally, I would just target the version that you wish, and always include a framework installation.就个人而言,我会只针对您想要的版本,并且始终包括框架安装。 The "cost" of including the check to install the framework, especially if you use the web installer, is very small - much smaller than the development cost of targeting an older framework version and limiting yourself to a less rich development experience.包括检查以安装框架的“成本”,特别是如果您使用 web 安装程序,是非常小的——比以旧框架版本为目标并将自己限制在不太丰富的开发体验中的开发成本要小得多。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.