Skip to content

Commit 6a1155e

Browse files
committed
Fix CG issue for Microsoft.IO.Redist
Backport of #74653
1 parent eda7009 commit 6a1155e

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

eng/Directory.Packages.props

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -228,11 +228,14 @@
228228
<PackageVersion Include="System.Threading.Channels" Version="7.0.0" />
229229

230230
<!--
231-
System.Net.Http and System.Private.Uri are used to eliminate our reference to old packages with vulnerability.
232-
They are introduced by other component. Tracked issues:https://github.com/xunit/xunit/issues/2778 and https://devdiv.visualstudio.com/DevDiv/_workitems/edit/1886496
231+
Packages that are pinned to avoid component governance alerts.
232+
Tracked issues:
233+
https://github.com/xunit/xunit/issues/2778
234+
https://devdiv.visualstudio.com/DevDiv/_workitems/edit/1886496
233235
-->
234236
<PackageVersion Include="System.Net.Http" Version="4.3.4" />
235237
<PackageVersion Include="System.Private.Uri" Version="4.3.2" />
238+
<PackageVersion Include="Microsoft.IO.Redist" Version="6.0.1" />
236239

237240
<PackageVersion Include="SQLitePCLRaw.core" Version="$(SqliteVersion)" />
238241
<PackageVersion Include="SQLitePCLRaw.bundle_green" Version="$(SqliteVersion)" />

src/Workspaces/Core/MSBuild.BuildHost/Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost.csproj

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,11 @@
4343
</ItemGroup>
4444
<ItemGroup>
4545
<PackageReference Include="Microsoft.Build.Locator" PrivateAssets="All" />
46-
<PackageReference Include="System.CommandLine" />
46+
<PackageReference Include="Microsoft.IO.Redist" Condition="'$(TargetFrameworkIdentifier)' != '.NETCoreApp'" />
47+
<PackageReference Include="Newtonsoft.Json" />
4748
<PackageReference Include="System.Collections.Immutable" />
49+
<PackageReference Include="System.CommandLine" />
4850
<PackageReference Include="System.Text.Json" VersionOverride="8.0.5" PrivateAssets="All" Condition="'$(DotnetBuildFromSource)' != 'true'"/>
49-
<PackageReference Include="Newtonsoft.Json" />
5051
<PackageReference Include="System.Threading.Tasks.Extensions" Condition="'$(TargetFrameworkIdentifier)' != '.NETCoreApp'" />
5152
</ItemGroup>
5253
<ItemGroup>

0 commit comments

Comments
 (0)