Given the LTS release of .NET Core it's good practice that any samples using the SDK should use the supported versions. 2.2 is no longer a supported version in a month or so and the latest SDK should be used in examples. Minor change, but important for copy/paste folks.