I am writing an application in C#. The application is a console application targeting .NET 4.7. From that application I want to programmatically check if .NET Core 3.1.300 runtime is installed. If not then I want to install it. How to do that ? So far I haven't found any API to check the installed .net core runtime.