Skip to content

Commit ba60e00

Browse files
authored
fix format geneator (#23708)
1 parent 0620997 commit ba60e00

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/FormatPs1XmlGenerator/FormatPs1XmlGenerator/NewFormatPs1XmlCommand.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ internal static IEnumerable<string> GetAssemblyPath(string artifactsPath, string
101101

102102
var nestedModules = (object[])moduleInfo["NestedModules"];
103103
var moduleBase = Path.GetDirectoryName(manifestPath) ?? throw new InvalidOperationException("Unable to get module base directory from the manifest path");
104-
list.AddRange(nestedModules.Select(nestedModule => Path.GetFullPath(Path.Combine(artifactsPath, nestedModule.ToString()))));
104+
list.AddRange(nestedModules.Where(nestedModule => Path.GetExtension(nestedModule.ToString()).ToLower().Equals(".dll")).Select(nestedModule => Path.GetFullPath(Path.Combine(artifactsPath, nestedModule.ToString()))));
105105
}
106106

107107
return list;

0 commit comments

Comments
 (0)