I created my project, I’ve been editing every day, and recently out of nowhere he failed to recognize an existing namespace

Asked

Viewed 55 times

0

I created my project in Visual Studio 2013, I’ve been editing every day, and recently out of nowhere it failed to recognize an existing namespace.

The namespace appears in red with the message "The type or namespace 'Models' does not exist in namespace 'Project.Models'

But when running my project everything runs normally, even if this error appears in the Error List. It seems to be a Visual Studio bug, on another computer I opened the project and ran normally !

  • 2

    If in another computer it opens normally, it is not a problem in the project, but something specific in its environment. Already tried to repair or even reinstall Visual Studio?

1 answer

0

right-click the project on properties and make sure Default namespace is correct, check the references to this project as well, remove and refer again.

  • It is correct, I ended up testing on another machine and it worked, then I reinstalled my entire Visual Studio and returned to work. Mysteries of Ms....

Browser other questions tagged

You are not signed in. Login or sign up in order to post.