I have an issue with a class being used in another project.
Visual studio is able to add a using
statement using Resolve
(Ctrl+.
), but:
The type or namespace name 'SomeClass' could not be found (are you missing a using directive or an assembly reference?
Resolving this again fully qualifies the type but the namespace in the type path is highlighted as not being found.
The namespace appears also in intellisense and the target class is visible in the Object Browser.
Removing unused namespaces removes the added using
statement.
I've tried:
- Rebuild.
- Confirm project dependency in solution options.
- Delete reference and re-add.
- Confirm class accessibility (despite namespace not being found).
- Checked build mode (Debug/Release).
- Restart Visual Studio.
- Cleared
bin
folders in both projects. - Restart machine.
What is the next step to diagnosing this baffling issue?