I am trying to make an installer on Visual studio for my C# project that is dependent on .Net Core 2.1. I know I need to look in file directory "C:\Program Files\dotnet\host\fxr" to check if the .NET core is installed or not. but is there a way we can check the specific version?
Asked
Active
Viewed 1,092 times
1 Answers
0
you can execute Dotnet --version
, if the command failed, then probably .net core is not installed, if it executes correctly, it will print the version.

Sohaib Jundi
- 1,576
- 2
- 7
- 15
-
But we cant execute such commands in launch condition. It include file / registry search – Fatima A. Jul 18 '19 at 08:57
-
how are you creating the installer? – Sohaib Jundi Jul 18 '19 at 08:59
-
Through visual studio 2017 setup project – Fatima A. Jul 24 '19 at 05:38