Is there a way to set a default namespace for a project as it is created?

When creating a project in Visual Studio, the name you use for the project is used for:

  • Name the project file
  • Name the project folder
  • Creating a default namespace for a project

The first two values ​​are somewhat interconnected, so it makes sense to keep them the same in terms of agreement, however, using the value for the namespace causes problems:

Or you create project names in namespaces, which leads to very long file paths (which often cause problems with MSBuild when they exceed the 248 length limit for windows, you are given a default namespace that does not conform to normal naming conventions and then change using Find-and-Replace.

I have been working on this problem for 12 years now and it is not becoming more fun.

Is there any method for setting these values ​​separately at the moment when you are setting up the project?

+5
source share
1 answer

, Project Properties | |

+2

All Articles