how to change namespace of entire project?

前端 未结 11 717
梦如初夏
梦如初夏 2020-12-22 22:30

I\'m modifying demo application from this article: http://msdn.microsoft.com/en-us/magazine/dd419663.aspx

I need to update all files to use my namespace, for example

11条回答
  •  情书的邮戳
    2020-12-22 22:56

    When I wanted to change namespace and the solution name I did as follows:
    1) changed the namespace by selecting it and renaming it and I did the same with solution name
    2) clicked on the light bulb and renamed all the instances of old namespace
    3) removed all the projects from the solution
    4) closed the visual studio
    5) renamed all the projects in windows explorer
    6) opened visual studio and added all the projects again
    7) rename namespaces in all projects in their properties
    8) removed bin folder (from all projects)
    9) build the project again

    That worked for me without any problems and my project had as well source control. All was fine after pushing those changes to the remote.

提交回复
热议问题