9
votes

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

1
please share the csproj to allow diagnosing the problemMartin Ullrich
Did you figure it out? I'm having the same problem.grokky
I don't know exactly what it is, but I could fix it by creating a new DotnetCore 2 project, and copy the csproj nodesuser2657943
Try to remove <RuntimeFrameworkVersion> from .csproj if it exists. github.com/dotnet/core/issues/860 look for the answer by @qqbubyJenonD

1 Answers

2
votes

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.