Search code examples
c#wcf.net-coresvcutil.exe

Svcutil Configuration files are not supported.net core


I am using svcutil to get wcf service into my project.

But i get error while trying to initialize the soapClient:

ServiceSoapClient client = new ServiceSoapClient();

Here is the error:

Configuration files are not supported

I use this command to get it to my project:

svcutil myUrl.asmx /out:name.cs/config:name.config

I copied all the generated config content into my web.config file.

But without success.


Solution

  • For .net core i had to use dotnet svcutil and NOT just svcutil.

    In cmd I use: dotnet svcutil myUrl.admx

    For making it sync(as default it rendered as async) use:

    dotnet svcutil myUrl.admx --sync

    Now. You can wrap the rendered reference.cv with your namespace if you want.