简体   繁体   English

什么版本的 .Net 框架应该针对最终用户应用程序

[英]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.

相关问题 当我从源文件编译应用程序时,默认的目标.NET Framework版本是什么? - What is the default targeted .NET Framework version when i compile an application from Source File? 项目的目标 .NET 框架取决于 Visual Studio 版本? - Targeted .NET framework for the project depends on Visual Studio version? 通知用户.exe适用于比当前安装的.NET更高的版本 - Notify user that .exe is targeted for newer version of .NET than is currently installed 哪个版本的.Net Standard应该在支持UAP Ver 10应用程序的类库中定位 - Which version of .Net Standard should be targeted in a class library that supports a UAP Ver 10 application 我可以在版本4.6.2的Visual Studio项目中使用针对4.5.1 .net框架的库吗? - Can I use a library which is targeted to 4.5.1 .net framework in a visual studio project of version 4.6.2 以编程方式检查.NET Framework版本-我应该吗? - Programatically check for version .NET Framework - Should I? .net框架版本对于仅针对Visual Studio 2010的加载项应该是什么? - What should .net framework version be for an addin targeting only Visual Studio 2010? 我应该使用类库来定位.NET Framework和C#版本? - What .NET Framework and C# version should I target with my class library? Caliburn.Micro 2.0 .Net目标框架 - Caliburn.Micro 2.0 .Net targeted framework 我应该在Universal Apps中使用哪种MVVM框架 - What framework for MVVM should I use in Universal Apps
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM