Naor
Naor

Reputation: 24063

Where does the project reference gone?

I have a project (A) that holds reference to other project (B). When I rebuild project A, I get the error:

Error 58 The type or namespace name 'Services' does not exist in the namespace 'MyProj' (are you missing an assembly reference?)

When I add (again) reference to project B, the red lines disappear and everything is fine. When I rebuild again (in order to execute the application) I get again that Error 58.

Where does the project reference gone??

Upvotes: 0

Views: 151

Answers (4)

Saber Amani
Saber Amani

Reputation: 6489

I think, there is a conflict between your project, i recommend you to change your project B assembly name and then delete its exist assembly in project A and add it again.

Upvotes: 0

michalczerwinski
michalczerwinski

Reputation: 1189

Can you please include the output window content after rebuild? Sometimes the output file cannot be copied and this leads to similar issues

Upvotes: 0

Tigran
Tigran

Reputation: 62246

Seems project's .NET versions conflict. Something very similiar happened to me in those cases.

Upvotes: 1

Hogan
Hogan

Reputation: 70523

Is project B getting a compile time error? This would be your problem. Make sure B compiles or you can't reference it.

Upvotes: 0

Related Questions