When you upgrade your bot from .net core 2.0/2.1 to 2.2 you may see an warning that states; ‘A PackageReference to ‘Microsoft.AspNetCore.All’ specified a Version of 2.2.1
. Specifying the version of this package is not recommended’.
To avoid this warning;
- Right click the bot project in the solution explorer and ‘unload’ it.
- Right click the unloaded project and edit it
- Change
<PackageReference Include=”Microsoft.AspNetCore.All” Version=”2.2.1″/>
To
<PackageReference Include=”Microsoft.AspNetCore.All” /> - Reload the project.