0

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?

Keyur Ramoliya
  • 1,900
  • 2
  • 16
  • 17
Fatima A.
  • 41
  • 13

1 Answers1

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