I just installed a package through NuGet, but it shows a yellow exclamation mark icon in my Solution Explorer, see screenshot below.
Why does this happen, and how can I resolve it?
I just installed a package through NuGet, but it shows a yellow exclamation mark icon in my Solution Explorer, see screenshot below.
Why does this happen, and how can I resolve it?
Many times it is just that Visual Studio is out of sync. Closing the solution and re-opening will magically fix these errors in many cases. It's easy enough that it should be one of the first things you try.
In my case I had to manually update targetFramework in packages.config where "problematic" nuget was referenced.
My steps:
Sometimes this can happen somewhat persistently after changing the TargetFramework(s)
on a project that has already been loaded into Visual Studio. In my experience, the easiest way to ensure things are working correctly after changing the TFMs on a project is to close the solution, manually remove all the relevant bin
/obj
directories as well as the .vs
folder next to the solution file.
I know this is an old thread, but still, it happens even with VS 2022, when you move the project to a different physical location even with the same name. In many cases, absolutely all the dependencies are suddenly marked with a yellow or brown exclamation mark triangle. One solution is to remove one dependency and reload it via NuGet. Updating a dependency if possible does the same, and in both cases, apparently forces VS to get the right location of the dependencies.
For me i had this while using flaui dependency which was not matching the TargetFramework after changing from net6.0 to net6.0-windows it worked.