Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Add WCF Service Reference not visible in Connected Services

I have a SDK style project in latest version of Visual Studio 2019 (with Windows Communication Foundation component installed). But I don't have the possibility to add a WCF reference to my project, it's just not visible.

I need the following item in red circle:

enter image description here

Has anyone any idea, why I don't have this item in my Visual Studio?

More info: I'm working with .NET Framework 4.8

As you can see, it's not visible on my machine: enter image description here enter image description here

To make it more clear: It's not possible to choose WCF Web Service Reference Provider in Connected Services:

enter image description here

like image 892
Ozkan Avatar asked Oct 23 '25 03:10

Ozkan


2 Answers

You try to directly right-click the project to add, see if this post can help you find a solution How to "Add Service Reference" in .NET Standard project enter image description here enter image description here

like image 90
Lan Huang Avatar answered Oct 25 '25 17:10

Lan Huang


You need this in your project file:

  <ItemGroup>
    <WCFMetadata Include="Connected Services\" />
  </ItemGroup>

It enables the Connected Services > Add Service Reference

like image 34
Vaibhav Garg Avatar answered Oct 25 '25 18:10

Vaibhav Garg



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!