dotnet-svcutil
helps you generate WCF Client proxy code for target service, for example:
dotnet-svcutil https://localhost:8081/OrderManagement/OrderManagement.svc
It will create a directory named ServiceReference
, and generate Reference.cs
file contains proxy code within ServiceReference
directory.
ServiceReference
directory will be created at the root from where you have executed above command.
If we run this command from the root of the .Net Core Project directory, it will create the same directory named ServiceReference
.
Usualy we want it to generate proxy code under Connected Services
directory.
For this we need to use the parameter d
to provide directory to create files in.
dotnet-svcutil https://localhost:8081/OrderManagement/OrderManagement.svc -d "Connected Services/MyOrderManagementService"
This will create the output at path Connected Services/MyOrderManagementService
within the current directory where you are executed it.
References:
No comments:
Post a Comment