Check out example codes for "check version of asp.net core". It will help you in understanding the concepts better.

Code Example 1

dotnet --info

Learn ReactJs, React Native from akashmittal.com