Skip to content

Commit

Permalink
Fix: VS component check should only be performed for Win OS (#2270)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jklawreszuk authored May 25, 2024
1 parent b6ccdfe commit f78587d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions sources/engine/Stride.Assets/StrideConfig.cs
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,8 @@ internal static void RegisterSolutionPlatforms()
/// <returns>true if any of the components in the dictionary are available, false otherwise</returns>
internal static bool IsVSComponentAvailableAnyVersion(IDictionary<Version, string> vsVersionToComponent)
{
if (!OperatingSystem.IsWindows())
return false;
if (vsVersionToComponent == null) { throw new ArgumentNullException("vsVersionToComponent"); }

foreach (var pair in vsVersionToComponent)
Expand Down

0 comments on commit f78587d

Please sign in to comment.