Browse Source

Remove System.Security.Cryptography.Cng Dependency (#32453)

* Remove System.Security.Cryptography.Cng Dependency

* SuppressBaselineReference for `Reference`(s)

* Additional Packages

* Update TestData.cs

* Revert eng/PackageOverrides.txt
Tanay Parikh 4 năm trước cách đây
mục cha
commit
9698223dd1

+ 0 - 1
eng/Dependencies.props

@@ -71,7 +71,6 @@ and are generated based on the last package release.
     <LatestPackageReference Include="System.Reflection.Metadata" />
     <LatestPackageReference Include="System.Runtime.CompilerServices.Unsafe" />
     <LatestPackageReference Include="System.Runtime.InteropServices.RuntimeInformation" />
-    <LatestPackageReference Include="System.Security.Cryptography.Cng" />
     <LatestPackageReference Include="System.Security.Cryptography.Pkcs" />
     <LatestPackageReference Include="System.Security.Cryptography.Xml" />
     <LatestPackageReference Include="System.Security.Principal.Windows" />

+ 0 - 2
eng/SharedFramework.External.props

@@ -83,7 +83,6 @@
   -->
   <ItemGroup Condition="'$(TargetFramework)' == 'netstandard2.0' or $(TargetFrameworks.Contains('netstandard2.0')) or '$(TargetFramework)' == 'netstandard2.1'">
     <_CompilationOnlyReference Include="Microsoft.Win32.Registry" />
-    <_CompilationOnlyReference Include="System.Security.Cryptography.Cng" />
     <_CompilationOnlyReference Include="System.Security.Principal.Windows" />
     <_CompilationOnlyReference Include="System.Buffers" />
     <_CompilationOnlyReference Include="System.ComponentModel.Annotations" />
@@ -97,7 +96,6 @@
   -->
   <ItemGroup Condition="'$(TargetFramework)' == '$(DefaultNetCoreTargetFramework)' or $(TargetFrameworks.Contains('$(DefaultNetCoreTargetFramework)'))">
     <_CompilationOnlyReference Include="Microsoft.Win32.Registry" />
-    <_CompilationOnlyReference Include="System.Security.Cryptography.Cng" />
     <_CompilationOnlyReference Include="System.Security.Principal.Windows" />
   </ItemGroup>
 

+ 0 - 4
eng/Version.Details.xml

@@ -221,10 +221,6 @@
       <Uri>https://github.com/dotnet/runtime</Uri>
       <Sha>65020c946254c9a99497f4fdfa4136131f51f913</Sha>
     </Dependency>
-    <Dependency Name="System.Security.Cryptography.Cng" Version="6.0.0-preview.5.21226.1">
-      <Uri>https://github.com/dotnet/runtime</Uri>
-      <Sha>3782e6e41cfaf76ec9ae4117722f835596026b1a</Sha>
-    </Dependency>
     <Dependency Name="System.Security.Cryptography.Pkcs" Version="6.0.0-preview.5.21254.12">
       <Uri>https://github.com/dotnet/runtime</Uri>
       <Sha>65020c946254c9a99497f4fdfa4136131f51f913</Sha>

+ 0 - 1
eng/Versions.props

@@ -120,7 +120,6 @@
     <SystemReflectionMetadataVersion>6.0.0-preview.5.21254.12</SystemReflectionMetadataVersion>
     <SystemResourcesExtensionsVersion>6.0.0-preview.5.21254.12</SystemResourcesExtensionsVersion>
     <SystemRuntimeCompilerServicesUnsafeVersion>6.0.0-preview.5.21254.12</SystemRuntimeCompilerServicesUnsafeVersion>
-    <SystemSecurityCryptographyCngVersion>6.0.0-preview.5.21226.1</SystemSecurityCryptographyCngVersion>
     <SystemSecurityCryptographyPkcsVersion>6.0.0-preview.5.21254.12</SystemSecurityCryptographyPkcsVersion>
     <SystemSecurityCryptographyXmlVersion>6.0.0-preview.5.21254.12</SystemSecurityCryptographyXmlVersion>
     <SystemSecurityPrincipalWindowsVersion>6.0.0-preview.5.21254.12</SystemSecurityPrincipalWindowsVersion>

+ 0 - 1
src/Servers/Kestrel/Core/src/Microsoft.AspNetCore.Server.Kestrel.Core.csproj

@@ -35,7 +35,6 @@
     <Reference Include="Microsoft.Extensions.Logging.Abstractions" />
     <Reference Include="Microsoft.Extensions.Options" />
     <Reference Include="Microsoft.Net.Http.Headers" />
-    <Reference Include="System.Security.Cryptography.Cng" />
   </ItemGroup>
 
   <ItemGroup>

+ 0 - 1
src/Shared/test/Shared.Tests/Microsoft.AspNetCore.Shared.Tests.csproj

@@ -40,7 +40,6 @@
     <Reference Include="System.IO.Pipelines" />
     <Reference Include="System.Reflection.Metadata" />
     <Reference Include="System.Runtime.CompilerServices.Unsafe" />
-    <Reference Include="System.Security.Cryptography.Cng" />
     <Reference Include="System.Security.Principal.Windows" />
     <Reference Include="System.Threading.Tasks.Extensions" />
     <Reference Include="Microsoft.AspNetCore.Http.Features" />

+ 0 - 4
src/Tools/dotnet-dev-certs/src/dotnet-dev-certs.csproj

@@ -18,8 +18,4 @@
     <Compile Include="$(ToolSharedSourceRoot)CommandLine\**\*.cs" />
   </ItemGroup>
 
-  <ItemGroup>
-    <Reference Include="System.Security.Cryptography.Cng" />
-  </ItemGroup>
-
 </Project>