Package manager console returns an error
"System.IO.FileLoadException: Could not load file or assembly 'System.Runtime, Version=4.2.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'.
The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)" as a result of scaffold generating.
I'm using .NET Core 3.1.
You should Change your startup project in Solution Explorer to your main project not a class library.
User contributions licensed under CC BY-SA 3.0