简体   繁体   English

是否可以在.Net Core 2控制台应用程序中使用WCF?

[英]Is it possible to use WCF in a .Net Core 2 console application?

I haven't problems for .Net Framework, but I need to use WCF in .NET Core 2. I need to host WCF services in my console application. 我对.Net Framework没问题,但是我需要在.NET Core 2中使用WCF。我需要在控制台应用程序中托管WCF服务。

On the base of this post I assume that it is possible in .NET Core 2 but I can't find any info how to do it in .NET Core 2. I would be very grateful for the links to expanded info. 这篇文章的基础上,我假设在.NET Core 2中是可能的,但是我找不到在.NET Core 2中如何做的任何信息。对于扩展信息的链接,我将不胜感激。

Hosting WCF services is not supported in .NET Core 2.0. .NET Core 2.0不支持承载WCF服务。 The support libraries allow consuming WCF services, but not hosting. 支持库允许使用WCF服务,但不能托管。

You can follow this GitHub issue tracking the feature request for server-side WCF: 您可以按照此GitHub问题跟踪服务器端WCF的功能请求:

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 是否可以静默运行 .NET Core 控制台应用程序(隐藏控制台窗口)? - Is it possible to run a .NET Core console application silently (hide console window)? 我可以在 dot net core 控制台应用程序中使用 BackgroundService - Can I use BackgroundService in dot net core console application 如何在 .Net core 控制台应用程序中使用依赖注入 - How to use Dependency Injection in .Net core Console Application 如何使用正确的连接字符串 .net 核心控制台应用程序 - How to use proper connection string .net core console application 运行 .NET 核心控制台应用程序 - Running a .NET Core Console Application 如何在服务器上使用WCF控制台应用程序? - How to use a wcf console application on server? 是否可以在将在Linux上运行的.Net Core Console App中使用.Net Framework 4.5 Dll参考 - Is it possible to use the .Net Framework 4.5 Dll reference in .Net Core Console App that will run in Linux Unable to authenticate soap web service when adding via Microsoft WCF Web service Reference Provider to .NET Core 3 console application - Unable to authenticate soap web service when adding via Microsoft WCF Web service Reference Provider to .NET Core 3 console application .net core控制台应用程序强类型配置 - .net core Console application strongly typed Configuration .Net核心/控制台应用程序/配置/ XML - .Net Core / Console Application / Configuration / XML
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM