Skip to content

Commit 48c165c

Browse files
authored
Fix CG issue for Microsoft.IO.Redist (#81223)
Backport of #74653
2 parents 61362bc + 9893df7 commit 48c165c

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

eng/Directory.Packages.props

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

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

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

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@
4343
<ItemGroup>
4444
<PackageReference Include="Microsoft.Build.Locator" PrivateAssets="All" />
4545
<PackageReference Include="Microsoft.Extensions.Logging.Console" />
46+
<PackageReference Include="Microsoft.IO.Redist" Condition="'$(TargetFrameworkIdentifier)' != '.NETCoreApp'" />
4647
<PackageReference Include="Newtonsoft.Json" />
4748
<PackageReference Include="System.CommandLine" />
4849
<PackageReference Include="System.Text.Json" VersionOverride="8.0.5" PrivateAssets="All" Condition="'$(DotnetBuildFromSource)' != 'true'"/>

0 commit comments

Comments
 (0)