我对 .net core 完全陌生。
我的任务是在 Linux 上运行 WCF 服务。 我的 WCF 服务是使用 .NET Framework 4 构建的。 我在 IIS 中托管我的服务。
您能否为我提供正确的指导,以处理以下问题,
我需要对当前的 WCF 服务进行哪些更改才能在 Linux 上运行它?
我需要什么版本的 Linux 才能使其与 .net core 一起使用?
目前,我在 IIS 中托管我的服务,如何在 Linux 中托管它,因为我们有大约 40 个服务。
我在互联网上发现,在控制台应用程序中托管WCF服务,是否有更好的托管方式,因为我有40多个服务。
最佳答案
.Net Core 1.0不支持编写WCF服务器,只支持连接到它们的客户端。 The README of the WCF repository说:
WCF service applications should still be created with the full .NET Framework version.
微软正在考虑在未来添加对 WCF 服务器的支持,但目前还不确定。来自 a post on the WCF repository自 2016 年 7 月 16 日起:
We have reviewed all the great responses above in regards to WCF Server support in .NET Core.
The WCF feature team is actively working on roadmap plans for WCF functionality in future .NET Core releases. For next steps, we need your feedback in terms of top scenarios, feature usage and target profiles.
然后链接到 a survey .
关于wcf - 使用.net core使现有的WCF服务在Linux上运行,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38553203/