Error renaming ASP.NET MVC project

前端 未结 7 881
慢半拍i
慢半拍i 2021-01-30 09:54

I have copied a previous project and renamed it. Once I had successfully renamed all the name spaces and it build correctly. I got the following error when I ran the application

7条回答
  •  离开以前
    2021-01-30 10:32

    I had this issue a few times already, so I will write down the procedure I follow also as a reminder for myself:

    1. Replace all of the old solution name with the new one.
    2. Navigate to Properties under each project and change the Assembly Name and Default Namespace fields to new solution name.
    3. Go to solution folder and rename all project folders with the new solution name.
    4. Remove all files under bin and obj folders.
    5. Solution will not be able to load projects. Remove all projects and add them again.
    6. Re-build the project.

提交回复
热议问题