Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Problems with adding reference to netstandard 2.0

I changed my Asp.Net Core 1.1 application to Core 2.0

This went pretty well but after I updated my nuget packages and I get this error everywhere

The type 'xxx' is defined in an assembly that is not referenced. You must add a reference to assembly 'netstandard, Version=2.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'.

When I press the button to add an assembly nothing happens. I tried rebuilding and restoring my packages multiple times but it won't work

like image 697
user2657943 Avatar asked Aug 15 '17 18:08

user2657943


1 Answers

I think you are having problem with the reference to the old NETStandard version in your class library. Just make sure you have removed NETStandard reference from all the csproj files in the solution.

like image 104
Nikola Babic Avatar answered Nov 15 '22 13:11

Nikola Babic