From cb5be4776623370bc7421a57b1a158c2e22bf115 Mon Sep 17 00:00:00 2001 From: "waffle.lord" Date: Sun, 24 Mar 2024 20:52:19 -0400 Subject: [PATCH] update .net checks to use x64 dotnet path --- SPTInstaller/Installer Tasks/PreChecks/Net8PreCheck.cs | 2 +- SPTInstaller/Installer Tasks/PreChecks/NetCore6PreCheck.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/SPTInstaller/Installer Tasks/PreChecks/Net8PreCheck.cs b/SPTInstaller/Installer Tasks/PreChecks/Net8PreCheck.cs index f2474b1..74ff95c 100644 --- a/SPTInstaller/Installer Tasks/PreChecks/Net8PreCheck.cs +++ b/SPTInstaller/Installer Tasks/PreChecks/Net8PreCheck.cs @@ -33,7 +33,7 @@ public class Net8PreCheck : PreCheckBase try { - var result = ProcessHelper.RunAndReadProcessOutputs("dotnet", "--list-runtimes"); + var result = ProcessHelper.RunAndReadProcessOutputs(@"C:\Program Files\dotnet\dotnet.exe", "--list-runtimes"); if (!result.Succeeded) { diff --git a/SPTInstaller/Installer Tasks/PreChecks/NetCore6PreCheck.cs b/SPTInstaller/Installer Tasks/PreChecks/NetCore6PreCheck.cs index 856d457..bb2e996 100644 --- a/SPTInstaller/Installer Tasks/PreChecks/NetCore6PreCheck.cs +++ b/SPTInstaller/Installer Tasks/PreChecks/NetCore6PreCheck.cs @@ -33,7 +33,7 @@ public class NetCore6PreCheck : PreCheckBase try { - var result = ProcessHelper.RunAndReadProcessOutputs("dotnet", "--list-runtimes"); + var result = ProcessHelper.RunAndReadProcessOutputs(@"C:\Program Files\dotnet\dotnet.exe", "--list-runtimes"); if (!result.Succeeded) {