Skip to content

Commit a5cc361

Browse files
committed
Make UseCompatibleCmdletsnot throw if default reference desktop-5.1.14393.206-windows is specified in the list of platforms
1 parent 6e85ec0 commit a5cc361

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Rules/UseCompatibleCmdlets.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,7 @@ private void SetupCmdletsDictionary()
326326
return;
327327
}
328328

329-
var extentedCompatibilityList = compatibilityList.Concat(Enumerable.Repeat(reference, 1));
329+
var extentedCompatibilityList = compatibilityList.Union(Enumerable.Repeat(reference, 1));
330330
foreach (var compat in extentedCompatibilityList)
331331
{
332332
string psedition, psversion, os;

0 commit comments

Comments
 (0)