Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

All .Net Core projects showing yellow exclamation mark / triangle

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?

like image 458
Darren Wainwright Avatar asked Oct 30 '17 18:10

Darren Wainwright


1 Answers

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

like image 143
Navid Golforoushan Avatar answered Nov 04 '22 22:11

Navid Golforoushan