Skip to content

Commit

Permalink
fix incompatiblity typo (#5059)
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonCropp authored May 23, 2024
1 parent e4cf920 commit fb9f692
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/Microsoft.TestPlatform.Utilities/InferRunSettingsHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -657,7 +657,7 @@ public static IEnumerable<string> FilterCompatibleSources(Architecture chosenPla
List<string> compatibleSources = new();
StringBuilder warnings = new();
warnings.AppendLine();
bool incompatiblityFound = false;
bool incompatibilityFound = false;
foreach (var source in sourcePlatforms.Keys)
{
Architecture actualPlatform = sourcePlatforms[source];
Expand All @@ -667,18 +667,18 @@ public static IEnumerable<string> FilterCompatibleSources(Architecture chosenPla
{
var onlyFileName = Path.GetFileName(source);
// Add message for incompatible sources.
var incompatiblityMessage = string.Format(CultureInfo.CurrentCulture, OMResources.SourceIncompatible, onlyFileName, actualFramework.Name, actualPlatform);
var incompatibilityMessage = string.Format(CultureInfo.CurrentCulture, OMResources.SourceIncompatible, onlyFileName, actualFramework.Name, actualPlatform);

warnings.AppendLine(incompatiblityMessage);
incompatiblityFound = true;
warnings.AppendLine(incompatibilityMessage);
incompatibilityFound = true;
}
else
{
compatibleSources.Add(source);
}
}

if (incompatiblityFound)
if (incompatibilityFound)
{
incompatibleSettingWarning = string.Format(CultureInfo.CurrentCulture, OMResources.DisplayChosenSettings, chosenFramework, chosenPlatform, warnings.ToString(), MultiTargetingForwardLink);
}
Expand Down

0 comments on commit fb9f692

Please sign in to comment.