Skip to content

Commit ec89a0f

Browse files
authored
Move the X509 Certificates version-pinning workaround up to a subdirectory. (PR feedback from #9101 ) (#11402)
1 parent ec68425 commit ec89a0f

2 files changed

Lines changed: 10 additions & 5 deletions

File tree

Directory.Build.props

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,4 @@
2727
<MsbuildTaskMicrosoftCodeAnalysisCSharpVersion>$(MicrosoftCodeAnalysisCSharpVersion)</MsbuildTaskMicrosoftCodeAnalysisCSharpVersion>
2828
</PropertyGroup>
2929

30-
<!-- Don't let it restore lower versions of this package, which can come transitively from NetStandard package restores (CSProj only) -->
31-
<ItemGroup Condition="'$(MSBuildProjectExtension)' == '.csproj'" >
32-
<PackageReference Include="System.Security.Cryptography.X509Certificates" Version="$(SystemSecurityCryptographyX509CertificatesVersion)" />
33-
</ItemGroup>
34-
3530
</Project>

src/Directory.Build.props

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project>
3+
<Import Project="..\Directory.Build.props" />
4+
5+
<!-- Don't let it restore lower versions of this package, which can come transitively from NetStandard package restores (CSProj only) -->
6+
<ItemGroup Condition="'$(MSBuildProjectExtension)' == '.csproj'" >
7+
<PackageReference Include="System.Security.Cryptography.X509Certificates" Version="$(SystemSecurityCryptographyX509CertificatesVersion)" />
8+
</ItemGroup>
9+
10+
</Project>

0 commit comments

Comments
 (0)