Reputation: 1277
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!
Upvotes: 10
Views: 6255
Reputation: 646
Try to wrap namespace into quotes, like this:
/namespace:"*,My.Proxy"
Upvotes: 7
Reputation: 740
it's how PowerShell interprets the dot "."
Running the same command on command prompt will not generate such error.
Upvotes: 0