Why would someone use SvcUtil.exe when Add Service Reference in VS.NET provides all the proxy classes you'll need?
Asked
Active
Viewed 4,947 times
3
-
2Everyone doesn't use VS always. – L.B Nov 15 '12 at 17:21
-
But if you do, you probably won't use SvcUtil.exe? Also, these proxies are C# classes. So what else are they using if not VS.NET? – 4thSpace Nov 15 '12 at 17:24
-
`csc` `MonodDevelop` `SharpDevelop`. I may also use it to later modify the proxy classes according to some custom needs. – L.B Nov 15 '12 at 17:28
-
svchf does not generate xamlx activities either – Sentinel Nov 11 '13 at 20:14
2 Answers
3
-
1+1 but also, svcutil will sometimes let you see error messages that would be hidden by "Add Service Reference". – John Saunders Nov 17 '12 at 02:36
-
@JohnSaunders: VS 2019 finally shows those errors, but only creates clients for .NET Core. – Nick Westgate Dec 07 '20 at 04:48
1
Both svcutil.exe & 'Add Service reference' will use the same proxy generation code underneath. Think of 'Add service reference' as a UI way to generate proxy where it pre-populates a set of switches that you will have to do in svcutil command line. For example when you add service reference in VS the UI lets you to reuse types from referenced assemblies, specify the kind of proxy to be generated (sync-async / task based etc). svcutil will also be useful if you want to automate service reference generation.

Praburaj
- 11,417
- 1
- 23
- 20