Veli Gebrev
Veli Gebrev

Reputation: 2521

Changed namespace not found unless prepended with global::

So I recently renamed my data access layer's namespace from Client.Project.DataAccess to Project.DataAcess

Next, I went and changed all the using Client.Project.DataAccess; instances to reflect the name change, only to discover that names in the namespace won't be resolved unless I do using global::Project.DataAccess;

Any idea why this is happening?

Upvotes: 0

Views: 61

Answers (1)

Oded
Oded

Reputation: 499132

From your comments, it looks like you have a Project class - this is causing the naming conflict you are seeing, requiring you to resolve the conflict using the global:: alias.

Upvotes: 1

Related Questions