如何“添加服务引用"在 .NET Standard 项目中 [英] How to "Add Service Reference" in .NET Standard project

查看:28
本文介绍了如何“添加服务引用"在 .NET Standard 项目中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在 .NET Standard 项目中添加服务引用".(Visual Studio 2017)

I would like to do "Add Service Reference" in .NET Standard project.(Visual Studio 2017)

我在 NuGet 上安装了System.ServiceModel.Http"和System.ServiceModel.Security"以使 WCF 访问成为可能.

I installed "System.ServiceModel.Http" and "System.ServiceModel.Security" on NuGet in order to make WCF access possible.

但是,.NET Standard 项目中没有添加服务引用"菜单项.如何添加服务引用?

However, there is no "Add Service Reference" menu item in the .NET Standard project. How do I add a service reference?

它存在于.NET Framework 项目中,但它不存在于.NET Standard 项目中,所以它有问题.

It exists in the .NET Framework project but it does not exist in the .NET Standard project, so it is in trouble.

推荐答案

Visual Studio 2017 Community v15.9.7

Visual Studio 2017 Community v15.9.7

解决方案资源管理器 -> 右键单击​​ 依赖项 -> 添加 连接的服务

Solution Explorer -> Right click Dependencies -> Add Connected Service

屏幕截图:

这篇关于如何“添加服务引用"在 .NET Standard 项目中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆