Change Default Namespace when creating Class in Folder (Visual Studio)

后端 未结 5 390
一生所求
一生所求 2020-12-08 09:34

How can I change the default namespace used when you create a new class in Visual Studio?

Background: My solution has a project MyCompany.MyProject.Domain in which I

5条回答
  •  粉色の甜心
    2020-12-08 10:09

    To change the default namespace:

    Right click on the project, go to properties and under the 'Application' tab there is a 'Default namespace' field.

    Note that this doesn't answer your exact question though, it depends on your folder. You basically you need to rename that folder to 'Model'.

提交回复
热议问题