kira
kira

Reputation: 513

VS2019: The type or namespace name could not be found

recently i migrate from vs2017 to vs2019, vs2017 opens and display the documents fine, but vs2019 highlights the namespace red and states The type or namespace name could not be found.

i tried clean and rebuild projects, update "Microsoft.Net.Compilers" and uncheck "parallel project initialization" but non of them works.

Upvotes: 2

Views: 6884

Answers (1)

kira
kira

Reputation: 513

It was visual studio intellisense problem and following this steps helps me resolve it

  1. Clean solution
  2. Close visual studio
  3. Delete .suo file located relatively to source in: .vs\SolutionName\v16\.suo
  4. Reopen VS and build solution

Upvotes: 14

Related Questions