Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > Indigo

Vista - SvcUtil and namespaces

 
 
Old 09-21-2006   #1 (permalink)
Ian Harding


 
 

SvcUtil and namespaces

I'm using svcutil to generate client proxy code from my service. This
is working fine, but I have a question:

The server interface attributed with [ServiceContract] is contained
within a .NET namespace, but the client file generated by svcutil
doesn't surround the code with a namespace declaration. Is this
expected? I know I can just go an edit the generated file, but I want
to understand why this is happening.

Thank you,
Ian

My System SpecsSystem Spec
Old 09-25-2006   #2 (permalink)
Arkady Frenkel


 
 

Re: SvcUtil and namespaces

Yes, that how svcutil work at least up to now
Arkady

"Ian Harding" <iharding160@hotmail.com> wrote in message
news:4nfqt3Fa842sU1@individual.net...
> I'm using svcutil to generate client proxy code from my service. This is
> working fine, but I have a question:
>
> The server interface attributed with [ServiceContract] is contained within
> a .NET namespace, but the client file generated by svcutil doesn't
> surround the code with a namespace declaration. Is this expected? I know
> I can just go an edit the generated file, but I want to understand why
> this is happening.
>
> Thank you,
> Ian



My System SpecsSystem Spec
Old 09-26-2006   #3 (permalink)
Chuck Heatherly


 
 

Re: SvcUtil and namespaces

On Mon, 25 Sep 2006 10:57:22 +0300, "Arkady Frenkel"
<arkadyf@hotmailxdotx.com> wrote:

>Yes, that how svcutil work at least up to now
>Arkady


Does anyone know if that behavior is going to change by the final
release? I'm using RC1 and it's still that way. It's really
annoying, because I have to manually edit the code that is generated
by svcutil, and I thought the whole point of that automatic generation
is to avoid hand-editing.

Just a simple command-line parameter that basically wraps all the
generated code inside a given namespace?

Chuck
My System SpecsSystem Spec
Old 09-27-2006   #4 (permalink)
Shawn Cicoria


 
 

Re: SvcUtil and namespaces

There's a namespace switch on the svcutil.exe utility.

/namespace:<string,string>

so, add the option below to map to your own namespace.
..... /namespace:*,MyNamespace


My System SpecsSystem Spec
 

Thread Tools


Similar Threads
Thread Forum
Imported namespaces .NET General
Creating a cmdlet using csc.exe - missing namespaces PowerShell
Puzzled about namespaces PowerShell


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46