I'm trying to call svcutil.exe specifying a namespace parameter, but whatever I do, I get an error, even if I am reusing working examples from the Internet.
For example, here I tried the simplest option just for testing - /namespace:*,My.Proxy.
Here is the whole line which I call from powershell script:
$svcUtilresult = & "C:\Program Files (x86)\Microsoft SDKs\Windows\v8.0A\bin\NETFX 4.0 Tools\svcutil.exe" /namespace:*,My.Proxy /out:$csFile $svcUri /config:$configPath;
And here is the error I'm getting:
svcutil.exe : Error: Invalid value * passed to the /namespace option. Specify a comma-separated target namespace and CLR namespace pair.
I tried passing there real namespaces with and without quotation marks, empty values, other strings and all the time I'm getting the error invalid value.
Could you point me, what I'm doing wrong? Thanks a lot!
Try to wrap namespace into quotes, like this:
/namespace:"*,My.Proxy"
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With