|
|
||||||
|
#1
|
|
|
|
|
VS 2005:
If I create a folder in my project, when I add new classes to that folder, VS generates a namespace which is the project default namespace concatenated with the folder name. Is it possible to turn this (immensely infuriating) feature off so that it just uses the project default namespace regardless of any folder structure? |
|
|
|
#2
|
|
|
|
|
I was hopeful that a custom template might do it; the content is
controlled by specific tokens in the template file (which you can create yourself), but it looks like (contrary to the documentation), $rootnamespace$ actually contains the folder info. One option would be to use "namespace $projectname$" - if you can live with the namespace being the same as the project name (which often they might be...). You can find out about creating your own template here: [url down] The available tokens are listed here: [url down] (see also the 3.0 page - there is some mention there [in the user content] of unlisted tokens). Marc |
|
#3
|
|
|
|
|
Clive Dixon wrote:
> this (immensely infuriating) feature off so that it just uses the I know this doesn't help you, but its nice to know I am not alone in my annoyance at that "feature" -- |
|
#4
|
|
|
|
|
Thanks
Hoped there might be a quick way to do it, but I suspected that I would have to go the roll my own route. "Marc Gravell" <marc.gravell> wrote in message news:2838 [..] |
|
|
| Similar Threads | |
| Where to get the Sharepoint Namespaces for Visual Studio .NETdevelopment I've install wss 3.0 and MOSS 2007 SDKs on my client. And VS 2005 Sharepoint extensions appear to be a server install. Still no sign of the SharePoint Namesspaces... |
|
| Visual Studio Code Analysis using namespaces Is it possible to run Code Analysis in VS for a specific namespace (or class) ? I used to work with the FxCop UI where I could specify which namespaces to analyze. Now I am... |
|
| Where can I find the generated dll in visual studio 2005 as Visual studio 2003? Where can I find the generated dll in visual studio 2005? I didn’t find any of the generated .dll file as in visual studio 2003. Please let me know the steps to generate... |
|
| Namespaces not visible in Visual Studio 2003 developing with C# I have a .Net Windows Forms application made up of several projects. Under one project, I added a new folder under my GUI project called 'Components'. I am going to add... |
|
| Namespaces within Visual Studio IDE Does anyone know how to incorporate classes with different namespaces within a project? I have two classes with the same name but different namespace. When I try to add the... |
|
|
All times are GMT. The time now is 04:55 PM. | Privacy Policy
|