-
Notifications
You must be signed in to change notification settings - Fork 556
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ability to generate contracts only & skip the client #3224
Comments
Thanks for the suggestion. Do you mean something like the /serviceContract switch from the desktop svcutil.exe? Is your proxy generated in a way that makes removing the client part yourself difficult? Or do you just want this feature to avoid having to do the manual step? |
Yes 👍 exactly the I want this feature to avoid the manual step because I'm trying to use a generic proxy class as client for all the WCF endpoints in my project & I would like to create a simple script for my team which would internally utilize the svcutil to generate the contracts so they can start using the generic proxy right away but imagine removing the auto generated client proxy for every endpoint each individual brings in 😩 Rather than trying to delete the proxy client from the script I would love this feature to be part of the I would love to contribute 😍 to this feature but only if someone can point me in the right direction 👉 |
@rohith I had a miscommunication with Stephen about this and wanted to make sure we were clear. The desktop version of svcutil.exe already has this feature, and this request is to add the same feature to the WCF core version of the tool (dotnet-svcutil.exe). We will not be able to get to this in the 3.0 timeframe, so we moved this to our backlog to investigate in the future. Unfortunately you can't contribute to this feature yourself because dotnet-svcutil.exe is not currently open source. |
I appreciate the info & I'm just glad to know this will be worked on. Thanks @dasetser @StephenBonikowsky |
@rohith For now can you try using the normal svcutil.exe to generate this? The difference between svcutil and dotnet-svcutil is that dotnet-svcutil filters out parts of the code that are not compatible with .NET Core. However, if you only want the service contract piece that's just an interface that should be the same for both frameworks. So the contract svcutil.exe generates should work for .NET Core as well. |
@dasetser yup that's what I did, I only used the contracts |
FYI moving dotnet-svcutil.exe to open source is also on our radar. #3191 |
P3 ( |
@brandedoutcast for your information, dotnet-svcutil tool is now open source in this repo, under src\dotnet-svcutil. Feel free to submit a PR. |
When I do
dotnet svcutil http://contoso.com/SayHello.svc
, the svcutil generates aReference.cs
which contains the extracted Contracts & Models along with a SoapClientIt would be great to have something along the lines of
dotnet svcutil http://contoso.com/SayHello.svc --skip-client
to generate aReference.cs
without the SoapClientThe idea behind this request is to use a Generic Proxy which can act as a common client for multiple WCF endpoints rather than generating a client for each & every endpoint
The text was updated successfully, but these errors were encountered: