A PackageReference to 'Microsoft.AspNetCore.App' specified a Version of `2.2.0`. Specifying the version of this package is not recommended.
When opening an ASP.NET Core application created by a colleague, I got the following warning:
NETSDK1071 A PackageReference to 'Microsoft.AspNetCore.App' specified a Version of `2.2.0`. Specifying the version of this package is not recommended. For more information, see https://aka.ms/sdkimplicitrefs
Inside the csproj file, the Microsoft.AspNetCore.App metapackage was referenced using an explicit version number:
This turns out not to be a good idea. When using .NET Core 2.1 or 2.2 and referencing Microsoft.AspNetCore.App or Microsoft.AspNetCore.All, the version attribute is unnecessary. The .NET Core SDK can automatically select the version of these packages that should be used. The recommendation is to remove the version number from the PackageReference to get rid of the warning:
More information: https://aka.ms/sdkimplicitrefs