From 7786037f9735bf1f97d1c015780722c1d49a3c6e Mon Sep 17 00:00:00 2001 From: Michael Bendtsen Date: Wed, 22 Jan 2020 20:42:44 +0100 Subject: [PATCH] Setting processorArchitecture in config file will determined which dotnet.exe version to use. (#62) --- Deveroom.VisualStudio/Connectors/OutProcSpecFlowConnector.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Deveroom.VisualStudio/Connectors/OutProcSpecFlowConnector.cs b/Deveroom.VisualStudio/Connectors/OutProcSpecFlowConnector.cs index bc3a471..80f8e6f 100644 --- a/Deveroom.VisualStudio/Connectors/OutProcSpecFlowConnector.cs +++ b/Deveroom.VisualStudio/Connectors/OutProcSpecFlowConnector.cs @@ -156,6 +156,8 @@ private string GetConnectorPath(List arguments) private string GetDotNetInstallLocation() { var programFiles = Environment.GetEnvironmentVariable("ProgramW6432"); + if (_configuration.ProcessorArchitecture == ProcessorArchitectureSetting.X86) + programFiles = Environment.GetEnvironmentVariable("ProgramFiles(x86)"); if (string.IsNullOrEmpty(programFiles)) programFiles = Environment.GetEnvironmentVariable("ProgramFiles"); return Path.Combine(programFiles, "dotnet");