Why are types found on an imported namepace but not on a fully qualified namespace after retargeting the framework?
- by Paul Ferguson
We've just re-targeted a VB.NET project from .Net 2.0 to 3.5.
Various framework types are now missing from our project. Wherever the type is referenced using a fully qualified namespace it's missing. If the relevant namespace is imported for the type; it's found.
For example, this doesn't find the type Object, with compiler error "System.Object is not defined.":
Public Class Foo
Inherits System.Object
End Class
However, this works ok:
Imports System
Public Class Foo
Inherits [Object]
End Class
I've already tried re-opening the solution with no success.