Author Topic: VS .NET Add-In - namespace generation  (Read 3786 times)

trevreeves

  • EA Novice
  • *
  • Posts: 6
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
VS .NET Add-In - namespace generation
« on: June 14, 2005, 08:07:54 am »
I am currently using the trial version of the Visual Studio .NET add in for developing C# code.  Getting on great with it appart from one small but annoying 'feature':

The code generation utility doesn't seem to want to generate the name space declarations for my classes and interfaces; i.e. "namespace mynamespace { ... }".
I appear to have created the namespaces correctly in EA; they all appear when I go to project-namespaces on the pull down.

Is there a 'tick box' hidden away somewhere that I'm missing, or is this something I am gonna have to live with?

any help is much appreciated.

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8085
  • Karma: +118/-20
    • View Profile
Re: VS .NET Add-In - namespace generation
« Reply #1 on: June 21, 2005, 04:43:56 pm »
Hello,

The packages listed as namespaces are actually namespace roots.  They specify that "A namespace heirachy starts here."  All packages below a namespace root will generate a namespace in C#.

Hope this clears up the confusion.

Simon

trevreeves

  • EA Novice
  • *
  • Posts: 6
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: VS .NET Add-In - namespace generation
« Reply #2 on: June 23, 2005, 12:40:28 am »
aaahh, thank you.  My problem was that I was defining a namespace root for each package that I wanted to be a namespace. Problem solved, much appreciated.