Skip to content

Commit

Permalink
Fix assembly version diff test for missing file (#20212)
Browse files Browse the repository at this point in the history
  • Loading branch information
mthalman authored Oct 21, 2024
1 parent 4b1779d commit 3da8ff9
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,11 @@ private static void RemoveExcludedAssemblyVersionPaths(Dictionary<string, Versio
{
string assemblyPath = sbSdkFileArray[i];
Version? sbVersion = sbSdkAssemblyVersions[assemblyPath];
Version? msftVersion = msftSdkAssemblyVersions[assemblyPath];
if (!msftSdkAssemblyVersions.TryGetValue(assemblyPath, out Version? msftVersion))
{
sbSdkAssemblyVersions.Remove(assemblyPath);
continue;
}

if (sbVersion is not null &&
msftVersion is not null &&
Expand Down Expand Up @@ -163,7 +167,7 @@ private string FindMatchingFilePath(string rootDir, Matcher matcher, string repr
}
}

Assert.Fail($"Unable to find matching file for '{representativeFile}' in '{rootDir}'.");
OutputHelper.WriteLine($"Unable to find matching file for '{representativeFile}' in '{rootDir}'.");
return string.Empty;
}

Expand Down

0 comments on commit 3da8ff9

Please # to comment.