命名空间'System.ServiceModel'中不存在类型或命名空间名称'ServiceHost'

时间:2021-11-06 07:28:42

I'm trying to add a wcf service in an application for Windows Iot (Raspberry Pi) using Visual Studio 2015.

我正在尝试使用Visual Studio 2015在Windows Iot(Raspberry Pi)的应用程序中添加wcf服务。

Because i can't add a reference 'on the usual way' (VS 2015 is not showing any), i added a nuget reference to System.ServiceModel.

因为我无法按照通常的方式添加引用(VS 2015没有显示任何内容),所以我添加了一个对System.ServiceModel的nuget引用。

        using (var host = new System.ServiceModel.ServiceHost (typeof(HelloWorldService), _baseAddress))
        {

        }

How can i reach the ServiceHost? Resharper doesn't help me neither

我怎样才能到达ServiceHost? Resharper也没有帮助我

命名空间'System.ServiceModel'中不存在类型或命名空间名称'ServiceHost'

1 个解决方案

#1


0  

Ok, i just found out that Windows iot doesn't support WCF (yet).

好吧,我刚刚发现Windows iot不支持WCF(尚未)。

#1


0  

Ok, i just found out that Windows iot doesn't support WCF (yet).

好吧,我刚刚发现Windows iot不支持WCF(尚未)。