Reputation:
While I've been making an MVC project with ASP.NET, I've renamed folders etc over time, and for some reason visual studio will still think the files are still stored there with the old name.
For example if I declare a class object that i've made, it will find it, but it will ask me to add like "using.FolderName.Class" when I've since renamed "FolderName" to "Folder" or even made a new folder and moved the class into it. The solution still builds, and everything works. But It's kind of worrying to see it's trying to reference something that's not there anymore. What's going on here? should I be worried?
Upvotes: 1
Views: 470
Reputation: 12796
Check your source code files for the lines that look like
using System;
namespace MyProject.MyFolder {
}
renaming folders won't automatically change the namespace. You could do it automatically with visual studio by right clicking on the folder and choosing Adjust all namespaces in folder
, or by right clicking on the namespace and choose to rename the namespace
Upvotes: 2