Skip to content

Commit

Permalink
Use OS bitness to figure out .NETCore runner architecture (#2507)
Browse files Browse the repository at this point in the history
  • Loading branch information
nohwnd authored Aug 4, 2020
1 parent 9971aac commit da7967a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -451,7 +451,7 @@ private bool UpdateRunSettingsIfRequired(string runsettingsXml, List<string> sou
|| chosenFramework.Name.IndexOf("netcoreapp", StringComparison.OrdinalIgnoreCase) >= 0
|| chosenFramework.Name.IndexOf("net5", StringComparison.OrdinalIgnoreCase) >= 0)
{
defaultArchitecture = Environment.Is64BitProcess ? Architecture.X64 : Architecture.X86;
defaultArchitecture = Environment.Is64BitOperatingSystem ? Architecture.X64 : Architecture.X86;
}

settingsUpdated |= this.UpdatePlatform(document, navigator, sources, sourcePlatforms, defaultArchitecture, out Architecture chosenPlatform);
Expand Down

0 comments on commit da7967a

Please sign in to comment.