![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
| 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. |
| |||||||
| |
| | #1 (permalink) |
| | 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 Specs![]() |
| | #2 (permalink) |
| | 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 Specs![]() |
| | #3 (permalink) |
| | 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 Specs![]() |
| | #4 (permalink) |
| | 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 Specs![]() |
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Forum | |||
| Imported namespaces | .NET General | |||
| Creating a cmdlet using csc.exe - missing namespaces | PowerShell | |||
| Puzzled about namespaces | PowerShell | |||