Skip to content

Commit 5b0bf27

Browse files
ericstjdougbu
authored andcommitted
Suppress all of System.Security.Permissions dependency closure
- cherry-picked from #33571
1 parent ca6f85d commit 5b0bf27

File tree

4 files changed

+17
-3
lines changed

4 files changed

+17
-3
lines changed

eng/Dependencies.props

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,13 +73,18 @@ and are generated based on the last package release.
7373
<LatestPackageReference Include="System.Runtime.InteropServices.RuntimeInformation" />
7474
<LatestPackageReference Include="System.Security.Cryptography.Pkcs" />
7575
<LatestPackageReference Include="System.Security.Cryptography.Xml" />
76-
<LatestPackageReference Include="System.Security.Permissions" />
7776
<LatestPackageReference Include="System.Security.Principal.Windows" />
7877
<LatestPackageReference Include="System.Text.Encodings.Web" />
7978
<LatestPackageReference Include="System.Text.Json" />
8079
<LatestPackageReference Include="System.Threading.Channels" />
8180
<LatestPackageReference Include="System.ValueTuple" />
8281

82+
<!-- Runtime packages referenced only for exclusions -->
83+
<LatestPackageReference Include="Microsoft.Win32.SystemEvents" />
84+
<LatestPackageReference Include="System.Drawing.Common" />
85+
<LatestPackageReference Include="System.Security.Permissions" />
86+
<LatestPackageReference Include="System.Windows.Extensions" />
87+
8388
<!-- Runtime packages required for crossgen -->
8489
<LatestPackageReference Include="Microsoft.NETCore.App.Runtime.win-x64" />
8590
<LatestPackageReference Include="Microsoft.NETCore.App.Runtime.win-x86" />

eng/Versions.props

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,10 +106,12 @@
106106
<MicrosoftExtensionsOptionsDataAnnotationsVersion>6.0.0-preview.7.21317.1</MicrosoftExtensionsOptionsDataAnnotationsVersion>
107107
<MicrosoftExtensionsOptionsVersion>6.0.0-preview.7.21317.1</MicrosoftExtensionsOptionsVersion>
108108
<MicrosoftExtensionsPrimitivesVersion>6.0.0-preview.7.21317.1</MicrosoftExtensionsPrimitivesVersion>
109+
<MicrosoftWin32SystemEventsVersion>6.0.0-preview.7.21317.1</MicrosoftWin32SystemEventsVersion>
109110
<MicrosoftAspNetCoreInternalTransportVersion>6.0.0-preview.7.21317.1</MicrosoftAspNetCoreInternalTransportVersion>
110111
<SystemDiagnosticsDiagnosticSourceVersion>6.0.0-preview.7.21317.1</SystemDiagnosticsDiagnosticSourceVersion>
111112
<SystemDiagnosticsEventLogVersion>6.0.0-preview.7.21317.1</SystemDiagnosticsEventLogVersion>
112113
<SystemDirectoryServicesProtocolsVersion>6.0.0-preview.7.21317.1</SystemDirectoryServicesProtocolsVersion>
114+
<SystemDrawingCommonVersion>6.0.0-preview.7.21317.1</SystemDrawingCommonVersion>
113115
<SystemIOPipelinesVersion>6.0.0-preview.7.21317.1</SystemIOPipelinesVersion>
114116
<SystemNetHttpJsonVersion>6.0.0-preview.7.21317.1</SystemNetHttpJsonVersion>
115117
<SystemNetHttpWinHttpHandlerVersion>6.0.0-preview.7.21317.1</SystemNetHttpWinHttpHandlerVersion>
@@ -123,6 +125,7 @@
123125
<SystemTextEncodingsWebVersion>6.0.0-preview.7.21317.1</SystemTextEncodingsWebVersion>
124126
<SystemTextJsonVersion>6.0.0-preview.7.21317.1</SystemTextJsonVersion>
125127
<SystemThreadingChannelsVersion>6.0.0-preview.7.21317.1</SystemThreadingChannelsVersion>
128+
<SystemWindowsExtensionsVersion>6.0.0-preview.7.21317.1</SystemWindowsExtensionsVersion>
126129
<!-- Only listed explicitly to workaround https://github.com/dotnet/cli/issues/10528 -->
127130
<MicrosoftNETCorePlatformsVersion>6.0.0-preview.7.21317.1</MicrosoftNETCorePlatformsVersion>
128131
<!-- Packages from dotnet/efcore -->

src/Framework/App.Ref/src/Microsoft.AspNetCore.App.Ref.csproj

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,10 +64,13 @@ This package is an internal implementation of the .NET Core SDK and is not meant
6464
<!-- Note: do not add _TransitiveExternalAspNetCoreAppReference to this list. This is intentionally not listed as a direct package reference. -->
6565
<Reference Include="@(AspNetCoreAppReference);@(AspNetCoreAppReferenceAndPackage);@(ExternalAspNetCoreAppReference)" />
6666

67-
<!-- Omit System.Security.Permissions. https://github.com/dotnet/runtime/issues/54341
67+
<!-- Omit System.Security.Permissions closure. https://github.com/dotnet/runtime/issues/54341
6868
It is brought in by System.Security.Cryptography.Xml for netstandard2.0 compatibility
6969
but not required in net6.0 since the types required exist in System.Security.AccessControl. -->
70+
<Reference Include="Microsoft.Win32.SystemEvents" ExcludeAssets="All" />
71+
<Reference Include="System.Drawing.Common" ExcludeAssets="All" />
7072
<Reference Include="System.Security.Permissions" ExcludeAssets="All" />
73+
<Reference Include="System.Windows.Extensions" ExcludeAssets="All" />
7174

7275
<!-- Enforce build order. Targeting pack needs to bundle information about the runtime. -->
7376
<ProjectReference Include="..\..\App.Runtime\src\Microsoft.AspNetCore.App.Runtime.csproj">

src/Framework/App.Runtime/src/Microsoft.AspNetCore.App.Runtime.csproj

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,10 +120,13 @@ This package is an internal implementation of the .NET Core SDK and is not meant
120120
<IncludeAssets>Runtime;Native</IncludeAssets>
121121
</Reference>
122122

123-
<!-- Omit System.Security.Permissions. https://github.com/dotnet/runtime/issues/54341
123+
<!-- Omit System.Security.Permissions closure. https://github.com/dotnet/runtime/issues/54341
124124
It is brought in by System.Security.Cryptography.Xml for netstandard2.0 compatibility
125125
but not required in net6.0 since the types required exist in System.Security.AccessControl. -->
126+
<Reference Include="Microsoft.Win32.SystemEvents" ExcludeAssets="All" />
127+
<Reference Include="System.Drawing.Common" ExcludeAssets="All" />
126128
<Reference Include="System.Security.Permissions" ExcludeAssets="All" />
129+
<Reference Include="System.Windows.Extensions" ExcludeAssets="All" />
127130

128131
<Reference Include="Microsoft.NETCore.App.Runtime.$(RuntimeIdentifier)"
129132
ExcludeAssets="All"

0 commit comments

Comments
 (0)