tzm
tzm

Reputation: 598

.Net Core - can't connect with WCF service (on Mac)

I am currently working on .NET Core 2.0 project (web api) on my Mac. I am trying connect to WCF service, so I followed all steps from documentation:

https://learn.microsoft.com/en-us/dotnet/core/additional-tools/dotnet-svcutil-guide

When I am trying to use this command on the terminal:

dotnet svcutil http://linkToTheService

I am getting an error:

No executable found matching command "dotnet-svcutil"

I thought that I should have Connected Service inside Visual Studio (for Mac) but I can't find it either. So it's not possible to connect to WCF service by using VS for Mac and .NET CLI now.

Am I doing something wrong? I checked also this site: https://learn.microsoft.com/pl-pl/dotnet/core/tools/?tabs=netcore2x#cli-commands

And can't find svcutil command for dotnet.

I tried to make it work just on basic console app (go through exactly the same steps as written in Microsoft documentation and still getting this error)

I also tried to install svcutil globally:

dotnet tool install -g dotnet-svcutil

But console throwed the another error:

incorrect combination of package and project for dotnet-svcutil 1.0.4

Upvotes: 1

Views: 1783

Answers (1)

iarejenius
iarejenius

Reputation: 1

It's a dumb thing that tripped me up, but make sure you're issuing the command from the same directory as the proj file that you installed the tool with. You'll get that error if you're not in the right directory. Easy to miss if your directory structure is a little different from the Microsoft docs example.

Upvotes: 0

Related Questions