Why can't I refer to a class in another namespace in another project within the same solution?

I created a different namespace in a different project, but in the same solution. When I type this other namespace, it appears. But I do not see any public class in this namespace. What's wrong?

+4
source share
2 answers

Since the type is publicly available, it sounds as simple as not having a project link between them. Right-click and add a new link, but see that the links should not be circular (i.e. A <===> B, or ===> B ===> C ===> A). In fact, the VS IDE does not allow you to do this, but it can be done (accidentally or intentionally) using command line tools.

+8
source

You must

  • refers to the export assembly in the import project
  • Define 1 or more public classes in an export project.
+4
source

All Articles