Description
I think this might be the same issue as dotnet/source-build#942 but I'm not 100% sure...
I removed the version from package reference as stated in the ASP.NET Core 2.0 to 2.1 upgrade guide but when I look in my project -> dependencies -> NuGet I see Microsoft.AspNetCore.App (2.1.1)
and I have the 2.1.603 SDK installed. Shouldn't I be seeing (2.1.10)
?
Remove the "Version" attribute on the package reference to Microsoft.AspNetCore.App. Projects which use do not need to set the version. The version will be implied by the target framework and selected to best match the way ASP.NET Core 2.1 works. (See below for more information.)
Workaround
Once I added the version number to the package I got the latest version under my project dependencies
<PackageReference Include="Microsoft.AspNetCore.App" Version="2.1.10"/>
Questions
- The version number shouldn't be specified in the package reference, right? I'm not supposed to have to do that, right?
- It's supposed to automatically find that SDK version installed on my machine, right?
- Was that the correct workaround?