Amir
Amir

Reputation: 9627

adding reference to dll does not bring the namespace

I have a solution containing several projects. I renamed one of the projects, and add a reference to it from one of the other projects.

After all, when trying to include the newly renamed project in the other project with "Using" keyword, it does not recognize the renamed namespace, so I cannot use any of the classes that I have got on it.

Any suggestion?

Upvotes: 0

Views: 1217

Answers (2)

Amir
Amir

Reputation: 9627

I just restarted visual studio and it now works fine!

Do not know what was the reason, but if you've encountered same thing and tried all the comments above, with no success, just close and reopen VS, should be fine then.

Upvotes: 1

Darin Dimitrov
Darin Dimitrov

Reputation: 1038710

If you renamed the assembly this probably doesn't rename the namespaces inside. So make sure that the class you are trying to use belongs to the proper namespace.

Upvotes: 0

Related Questions