I am in the process of upgrading .NET Core to 2.1 in my app. With the latest SDK (2.1.300), .NET Standard has two versions of Entity Framework Core. So, when I right click the line below and click "Go To Definition" I get the options in the below screenshot.
using Microsoft.EntityFrameworkCore;
Notice both 2.1.0.0 and 2.0.3.0 of Entity Framework Core. I am assuming that, by default, I am targeting the highest version available (2.1.0.0). I would like to specifically target 2.0.3.0 since I believe my class library's EF data provider currently has an incompatibility with 2.1.0.0. But, I would like to continue using the latest version of the SDK. Is there a way to achieve this by somehow specifying the version number of Microsoft.EntityFrameworkCore
to use?
I have already worked through the 2.x to 2.1 migration guide if that matters. Here are the relevant parts of my class library's .csproj for reference:
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.EntityFrameworkCore.Tools" Version="2.0.3" />
</ItemGroup>
</Project>