8

I have a related issue to this question NuGet package shows yellow exclamation mark. However, none of the comments help me.

I have installed .Net Core SDK (shown in the console screenshot)

enter image description here

When I create a new .Net core project; doesn't matter if it's a web site, web api or console application - I get the same result.

The steps I take are as follows:

enter image description here

enter image description here

I get the following - every single reference has the yellow exclamation.

enter image description here

I am running the most recent version of Visual Studio (at this time) 15.4.1

If i use the command line to create the project then everything is fine. However, if i open a cloned project created by another developer I get the yellow exclamation mark.

Any idea what I have incorrectly set up?

Darren Wainwright
  • 30,247
  • 21
  • 76
  • 127

2 Answers2

10

try "dotnet restore" command

This will restore all the packages.

make sure you have updated version of Runtime, SDK, and tools from the below link because updates should fix this issue.

https://www.microsoft.com/net/download/core

Ctrl_Alt_Defeat
  • 3,933
  • 12
  • 66
  • 116
Navid Golforoushan
  • 728
  • 1
  • 9
  • 16
  • Well, that was simple! Thanks so much! – Darren Wainwright Oct 30 '17 at 19:15
  • Hi, Darren id you like the post don't forget to forget to vote for the post this is helpful for other people also. – Navid Golforoushan Oct 30 '17 at 19:18
  • 2
    unfortunately did not work for me. using .net core 2.0 – IEnjoyEatingVegetables May 04 '19 at 19:12
  • 1
    Hi, John, do you have circular references to another library in your project. That's the other reason you could have a yellow icon. but as far as I know, it will not stop you from building and running your project. if that's not your case. send more doc and snapshot so I can replicated in my PC and find solution... – Navid Golforoushan May 17 '19 at 15:47
  • I just created a brand new dot net core 3.1 project with Angular template and I cannot get rid of yellow exclamation from the dependencies folder. Also, when I try to compile I get "node --version" exited with code 9009. Node.js is required to build and run this project.... – Vincy Mar 04 '20 at 13:41
0

The yellow triangles on all my dependencies appeared right after I renamed my project and solution. I wasn't able to get them to restore using the cmd above. I ended up removing all of the dependencies, readded them and the triangles went away.

matt4923
  • 1
  • 1
  • This does not provide an answer to the question. Once you have sufficient [reputation](https://stackoverflow.com/help/whats-reputation) you will be able to [comment on any post](https://stackoverflow.com/help/privileges/comment); instead, [provide answers that don't require clarification from the asker](https://meta.stackexchange.com/questions/214173/why-do-i-need-50-reputation-to-comment-what-can-i-do-instead). - [From Review](/review/late-answers/30121858) –  Oct 19 '21 at 18:46