Home > Blockchain >  How to add service as reference to class library?
How to add service as reference to class library?

Time:11-14

I have an existing WCF Service. I want to add it as a reference to a class library whose target framework is .net6, so that I can call WCF service methods I cannot see any option to add the service as a reference to the class library.

enter image description here

enter image description here

I am using Visual Studio 2022.

Is there any way to do this?

CodePudding user response:

@madmonk46 comment helped me in adding the service as a reference.

So you need to right-click the project in Solution explorer, then click on Add then Service Reference.

Then you can follow the instructions which are mentioned enter image description here

  • Related