Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

svcutil.exe and namespace parameter

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!

like image 797
Anelook Avatar asked Jul 19 '13 13:07

Anelook


1 Answers

Try to wrap namespace into quotes, like this:

/namespace:"*,My.Proxy"
like image 94
Mikee Avatar answered Oct 23 '22 18:10

Mikee