Skip to content
This repository was archived by the owner on Jan 14, 2026. It is now read-only.

Commit 8d05c8e

Browse files
authored
Remove usage of suspicious System.Management.Automation.dll (#144)
Addressing Component Governance compliance Old NuGet package **System.Management.Automation.dll.10.0.10586** was not a package owned by Microsoft organization on NuGet.org and is deprecated and unlisted right now. This package was used to circumvent the fact that **System.Management.Automation** nuget was not supported on `.net462`. **PowerShellStandard.Library.5.1.1** nuget on the other hand is owned by Microsoft and PowerShell team. After inspection of the contents of the suspicious package as well as the contents of the **PowerShellStandard.Library.5.1.1** it turns out they both have the same `System.Management.Automation.dll`. For reference: New **PowerShellStandard.Library.5.1.1** <img width="1145" height="717" alt="image" src="https://github.com/user-attachments/assets/785248a5-15b6-497f-828f-174a9d4b2dce" /> Old **System.Management.Automation.dll.10.0.10586** <img width="1015" height="717" alt="image" src="https://github.com/user-attachments/assets/26c057df-13c9-4a6c-8ef9-aecb27c90874" />
1 parent d339b2a commit 8d05c8e

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

properties/service_fabric_common.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
<!-- Version for binaries, nuget packages generated from this repo. -->
2424
<!-- TODO: Versions numbers are changed here manually for now, Integrate this with GitVersion. -->
2525
<MajorVersion>5</MajorVersion>
26-
<MinorVersion>1</MinorVersion>
26+
<MinorVersion>2</MinorVersion>
2727
<BuildVersion>0</BuildVersion>
2828
<Revision>0</Revision>
2929
</PropertyGroup>

src/Microsoft.ServiceFabric.Powershell.Http/Microsoft.ServiceFabric.Powershell.Http.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@
1010
</PropertyGroup>
1111
<ItemGroup>
1212
<PackageReference Include="Microsoft.Identity.Client" Version="4.61.3" />
13+
<PackageReference Include="Microsoft.Win32.Registry" Version="4.5.0 " />
1314
<PackageReference Include="Newtonsoft.Json" Version="13.0.1" />
14-
<PackageReference Include="PowerShellStandard.Library" Version="5.1.0-preview-06" />
15+
<PackageReference Include="PowerShellStandard.Library" Version="5.1.1" />
1516
<PackageReference Include="YamlDotNet" Version="8.1.2" />
16-
<PackageReference Include="Microsoft.Win32.Registry" Version="4.5.0 " />
1717
</ItemGroup>
1818
<ItemGroup>
1919
<Reference Include="SfSbzYamlMergeLib">

src/netframework/Microsoft.ServiceFabric.Powershell.Http/Microsoft.ServiceFabric.Powershell.Http_netframework.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
</ItemGroup>
4747
<ItemGroup>
4848
<PackageReference Include="Microsoft.Identity.Client" Version="4.61.3" />
49-
<PackageReference Include="System.Management.Automation.dll" Version="10.0.10586" />
49+
<PackageReference Include="PowerShellStandard.Library" Version="5.1.1" />
5050
<PackageReference Include="YamlDotNet" Version="8.1.2" />
5151
</ItemGroup>
5252
<ItemGroup>

0 commit comments

Comments
 (0)