Change Project Namespace in Visual Studio

后端 未结 7 1352
星月不相逢
星月不相逢 2020-12-08 03:47

How can I change the project namespace in Visual Studio?

The namespace is currently WindowsFormsApplication16, and I want the namespace to be MyNa

相关标签:
7条回答
  • 2020-12-08 04:23

    First)

    1. Goto menu: Project -> WindowsFormsApplication16 Properties/
    2. write MyName in Assembly name and Default namespace textbox, then save.

    Second)

    1. open one old .cs file ( a class or a form)
    2. right click on WindowsFormsApplication16 in front of namespace, goto Refactor -> Rename .
    3. write MyName in New name textbox, in Rename Message Box.
    4. press Ok, then Apply
    0 讨论(0)
提交回复
热议问题