How to NOT include Visual Studio Project folder names in generated namespaces

前端 未结 2 2005
借酒劲吻你
借酒劲吻你 2020-12-25 11:16

How do I prevent the name of the Solution Folder in a VS project from being appended to the namespace generated for new items added to the solution folder?

Example:

相关标签:
2条回答
  • 2020-12-25 11:36

    Make a new class template or change Visual Studio's class template. See the MSDN documentation for how to this. In the template file, you quickly see the line that inserts the 'safe' namespace name.

    0 讨论(0)
  • 2020-12-25 11:43

    If you have ReSharper installed, on the settings for the directory (F4), set Namespace Provider to false.

    0 讨论(0)
提交回复
热议问题