nuget package reference blue icon in visual studio 2017
That because you are using the packagereference
on the project types that are not .NET Core.
You can edit the .csproj file and check if it contains following ItemGroup
:
<ItemGroup>
<PackageReference Include="Newtonsoft.Json" Version="11.0.2" />
</ItemGroup>
To resolve this issue, you can delete this PackageReference
from your project file, then add those package with nuget package.
Besides, you should check if you have set the Default package management format to PackageReference
. If yes, change it to packages.config, then add those two packages with nuget:
Hope this helps.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…