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:
Doesn’t the reference have to be in your other service? The Companiesservice? The reference you see is in Businessserviceimplementation.
– Marcos Marques
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.
– ihavenokia
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?
– Marcos Marques
Yeah, I’ll put that on, but only tomorrow 'cause I’m off work
– ihavenokia
I don’t understand what happened......
– ihavenokia
Nuget itself did not update the missing references ?
– Marcos Marques
nuget? the reference was to a dll of mine, thought Nuget is for downloading bookstores from the net
– ihavenokia
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
– Marcos Marques
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
– ihavenokia
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.
– Marcos Marques