Windows 服务应使用哪个版本的 .net 4.0(4.0 完整版或客户端配置文件)

发布于 2024-10-08 21:32:13 字数 195 浏览 0 评论 0原文

参考这个问题,我想知道 Windows 服务应用程序应使用哪个版本(.net 4.0 客户端配置文件或完整版本)以及为什么?

With reference to this question, I would like to know which version (.net 4.0 client profile or full version) should be used for Windows service application and why?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

葬シ愛 2024-10-15 21:32:13

Windows 服务的项目模板默认以客户端配置文件为目标,因此选择简单地归结为 2 个方面:

a) 您的服务需要哪些框架功能 - 客户端配置文件中是否提供您需要的所有功能,或者您是否要使用以下功能:仅在完整框架中吗?

b) 安装包的大小重要吗?例如,如果您下载了软件包并且带宽对您来说是一项成本,那么保持安装包较小显然是一个好处。如果这是内部使用的服务,那么安装包的大小可能不是一个问题。

The project templates for Windows Services target the client profile by default so the choice simply comes down to 2 aspects:

a) What framework features does your service need - is everything you need available in the client profile or are you going to be using features that are only in the full framework?

b) Does the size of you installation package matter? E.g. If you're package is downloaded and bandwidth is a cost for you then keeping your install package small is clearly a benefit. If this is an internally used service then the size of the install package is likely to be less of an issue.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文