Windows Vista Forums
Vista Forums Home Join Vista Forums Donate Vista Tutorials Tags

Welcome to Vista Forums we are your forum to discuss Windows Vista x64 and x86 systems. Whether you need help or just want to post an idea you have on Vista, this is the forum for you.
Register at Vista forums...the world biggest Windows Vista resource Join Vista Forums Now

Go Back   Vista Forums > Microsoft Technical Newsgroups > Indigo

SvcUtil and namespaces

 
 
Thread Tools Display Modes
Old 09-21-2006   #1 (permalink)
Ian Harding
Guest


 

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
Old 09-25-2006   #2 (permalink)
Arkady Frenkel
Guest


 

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



Old 09-26-2006   #3 (permalink)
Chuck Heatherly
Guest


 

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
Old 09-27-2006   #4 (permalink)
Shawn Cicoria
Guest


 

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


 

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Imported namespaces MCM .NET General 3 2 Weeks Ago 09:54 PM
Creating a cmdlet using csc.exe - missing namespaces Marco Shaw PowerShell 5 10-03-2007 06:39 AM
Puzzled about namespaces Blip PowerShell 1 02-14-2007 11:53 AM
Binding, XPath & Namespaces Doug Avalon 4 01-10-2006 03:52 PM








Vistax64.com 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 2005-2008

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 47 48 49 50