Re: Source Tree Structure
- From: "pearsons_11114" <pearsons11114@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Fri, 29 Apr 2005 13:14:09 -0700
Hmm, not sure I follow. I wasn't able to find anything on "repertory", a term
I'm not familiar with. But I take what you said below to mean that VS will
follow the same convention as Java for a pre-existing source tree? For
example, with the following source file:
/com/company/xxx/yyy/MyClass.cs
VS will add a namespace statement of "com.company.xxx.yyy" to the source?
If so, does that mean that that's the typical convention that people follow?
Just looking for a consensus opinion. Thanks!
"Sylvain Lafontaine" wrote:
> No, there is no relation between namespaces and the source file locations in
> ..NET. By default, if you create a repertory and create a source file there,
> VS.NET will add the name of the repertory to the namespace but it's not
> mandatory and can be changed.
>
> --
> Sylvain Lafontaine, ing.
> MVP - Technologies Virtual-PC
>
>
> "pearsons_11114" <pearsons11114@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
> news:FFAE3190-1AEC-4EE2-8BA9-3E17D08E4DCC@xxxxxxxxxxxxxxxx
> > Newbie to .NET from Java, have a question about requirements/conventions
> > for
> > source tree layout. In Java there a convention-bordering-on-requirement
> > that
> > a source file's location in the source tree be determined by the package
> > it
> > belongs to. Java IDEs do this automatically. I haven't found any
> > documentation for this in dotnet. VS by default dumps new source files
> > into
> > the root regardless of namespace. Are there any conventions for this?
> > Thanks!
>
>
>
.
- Follow-Ups:
- Re: Source Tree Structure
- From: Daniel O'Connell [C# MVP]
- Re: Source Tree Structure
- From: Sylvain Lafontaine
- Re: Source Tree Structure
- References:
- Source Tree Structure
- From: pearsons_11114
- Re: Source Tree Structure
- From: Sylvain Lafontaine
- Source Tree Structure
- Prev by Date: Re: text file
- Next by Date: Re: multiple entries with the same key in .config files
- Previous by thread: Re: Source Tree Structure
- Next by thread: Re: Source Tree Structure
- Index(es):
Relevant Pages
|