Type is defined in a meeting that is not referenced

Asked

Viewed 131 times

0

I have a project called DataLibrary, a . dll is referenced in another project of mine, but for some reason, when compiling VS gives me an error to say that there is a type that is closed in DataLibrary but that I need to add a reference. I have the reference, and there are many (many) parts of the code in which I use DataLibrary.

I pulled this project from source control, sure the error is because of it. How can I fix it? This has happened to me before, with a similar project, but the problem was solved without having done anything but restart the VS (!!) now I no longer had the same luck. See below the error:

inserir a descrição da imagem aqui

  • 1

    Doesn’t the reference have to be in your other service? The Companiesservice? The reference you see is in Businessserviceimplementation.

  • Companies service (and many more) are in this project whose references are in the print. These WCF services point to classes that mess with the database, is that they were defined in another project, all in the same solution.

  • Right, but if you’re using the reference directly in the WCF itself, you’ll have to reference it directly where you have calls from it. Could show the line with the error and its references?

  • Yeah, I’ll put that on, but only tomorrow 'cause I’m off work

  • I don’t understand what happened......

  • Nuget itself did not update the missing references ?

  • nuget? the reference was to a dll of mine, thought Nuget is for downloading bookstores from the net

  • If you have your own repository configured, you can use nuget the same way, it doesn’t just serve to get references from nuget.org which is just a centralized repository. But by the way you put the dll manually, really it is a mystery to have left the XD error

  • As I said in the question, it happened to me before and the mistake disappeared, now it happened again.. I’m really lucky things work themselves out xD

  • 1

    Sometimes it is cache dirt in the references, the various CLEANS and REBUILDS , will solve. Only in closing and opening after a while settled, will that.

Show 5 more comments
No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.