Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

"Already has a reference to Essential.Diagnostics"

I tried installing Essential.Diagnostics via

Install-Package Essential.Diagnostics 

But I had an issue where it said I was referencing something that didn't exist, so I tried removing the reference, and now I don't know how to re-add it. When I run the above command in the Package Manager Console again, it keeps saying my project already has a reference to it, even though I can see in the Solution Explorer that it isn't there.

How do I fix this?

like image 263
mpen Avatar asked Oct 23 '22 09:10

mpen


1 Answers

Just noticed a file called "packages.config" in my project. I opened that, and it contained the suspect package. I deleted the file and re-installed the package. Successfully added now.

I guess that leaves the question, how are you supposed to properly remove a package then?

like image 100
mpen Avatar answered Jan 02 '23 19:01

mpen