.net核心添加Web参考

问题描述 投票:10回答:1

我有两个Web项目。

第一次创建大约2-3周前和今天第二次。

我想将Web Reference添加到第二个Web项目中。

第一个旧的Project Solution View

First old Project Solution View

第二个新的Project Solution View

enter image description here

在新的项目中,我找不到如何添加Web Reference。我可以添加服务参考,但我不需要它。

从这里我可以添加服务参考

enter image description here

但我无法添加Web引用就像它在旧项目中一样

enter image description here

我应该从哪里添加Web Reference?有关Web引用的更改吗?

asp.net-core .net-core visual-studio-2017 asp.net-core-1.1 web-reference
1个回答
0
投票
  • 在Solution Explorer中选择旧项目。
  • 单击“显示所有文件”按钮Solution Explorer工具栏。
  • 将展开Service节点,您将看到带有生成代码的嵌套节点。
  • 您应该找到WSDL文件的链接,该文件描述了您的Web服务。
  • 要从WSDL文件加载服务元数据,请在Browse对话框中选择Add Web Reference
© www.soinside.com 2019 - 2024. All rights reserved.