9

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

user2657943
  • 2,598
  • 5
  • 27
  • 49

1 Answers1

2

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.

Nikola Babic
  • 461
  • 3
  • 7
  • 1
    For us newbies, please explain how to do this? – wruckie Jul 26 '19 at 16:43
  • Manually edit the .csproj file and add the following reference: Save the project file reload the project in VS and rebuild it to see the change. – Raghav Sep 25 '19 at 17:22