Skip to content

Commit c5ca81f

Browse files
committed
- remove newly-unnecessary package references - do not expect affected assemblies in _our_ targeting packs
1 parent 697aee9 commit c5ca81f

File tree

10 files changed

+12
-23
lines changed

10 files changed

+12
-23
lines changed

eng/SharedFramework.External.props

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -89,14 +89,4 @@
8989
<_CompilationOnlyReference Include="System.Runtime.CompilerServices.Unsafe" />
9090
<_CompilationOnlyReference Include="System.Text.Json" />
9191
</ItemGroup>
92-
93-
<!--
94-
These compilation references are necessary to workaround the mismatch of what is found in the ref pack for NETCore.App and what
95-
is actually present at runtime. See https://github.com/dotnet/corefx/issues/34906
96-
-->
97-
<ItemGroup Condition="'$(TargetFramework)' == '$(DefaultNetCoreTargetFramework)' or $(TargetFrameworks.Contains('$(DefaultNetCoreTargetFramework)'))">
98-
<_CompilationOnlyReference Include="Microsoft.Win32.Registry" />
99-
<_CompilationOnlyReference Include="System.Security.Principal.Windows" />
100-
</ItemGroup>
101-
10292
</Project>

src/DataProtection/DataProtection/src/Microsoft.AspNetCore.DataProtection.csproj

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,15 @@
2626
<Reference Include="Microsoft.Extensions.Hosting.Abstractions" />
2727
<Reference Include="Microsoft.Extensions.Logging.Abstractions" />
2828
<Reference Include="Microsoft.Extensions.Options" />
29-
<Reference Include="Microsoft.Win32.Registry" />
3029
<Reference Include="System.Security.Cryptography.Xml" />
3130
</ItemGroup>
3231

32+
<ItemGroup Condition=" '$(TargetFramework)' == 'netstandard2.0' OR
33+
'$(TargetFramework)' == '$(DefaultNetFxTargetFramework)' OR
34+
'$(MSBuildRestoreSessionId)' == '' ">
35+
<Reference Include="Microsoft.Win32.Registry" />
36+
</ItemGroup>
37+
3338
<ItemGroup Condition="'$(TargetFramework)' == 'netstandard2.0' OR '$(MSBuildRestoreSessionId)' == ''">
3439
<Reference Include="System.Security.Principal.Windows" />
3540
</ItemGroup>

src/Framework/test/TestData.cs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -276,13 +276,10 @@ static TestData()
276276
{ "Microsoft.Extensions.WebEncoders", "6.0.0.0" },
277277
{ "Microsoft.JSInterop", "6.0.0.0" },
278278
{ "Microsoft.Net.Http.Headers", "6.0.0.0" },
279-
{ "Microsoft.Win32.Registry", "6.0.0.0" },
280279
{ "System.Diagnostics.EventLog", "6.0.0.0" },
281280
{ "System.IO.Pipelines", "6.0.0.0" },
282-
{ "System.Security.AccessControl", "6.0.0.0" },
283281
{ "System.Security.Cryptography.Cng", "6.0.0.0" },
284282
{ "System.Security.Cryptography.Xml", "6.0.0.0" },
285-
{ "System.Security.Principal.Windows", "6.0.0.0" },
286283
};
287284

288285
if (!VerifyAncmBinary())

src/Servers/HttpSys/src/Microsoft.AspNetCore.Server.HttpSys.csproj

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,6 @@
2626
<Reference Include="Microsoft.AspNetCore.Connections.Abstractions" />
2727
<Reference Include="Microsoft.AspNetCore.Hosting" />
2828
<Reference Include="Microsoft.Net.Http.Headers" />
29-
<Reference Include="Microsoft.Win32.Registry" />
30-
<Reference Include="System.Security.Principal.Windows" />
3129
</ItemGroup>
3230

3331
</Project>

src/Servers/IIS/IIS/src/Microsoft.AspNetCore.Server.IIS.csproj

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@
4646
<Reference Include="Microsoft.AspNetCore.Http.Features" />
4747
<Reference Include="Microsoft.Extensions.FileProviders.Physical" />
4848
<Reference Include="System.IO.Pipelines" />
49-
<Reference Include="System.Security.Principal.Windows" />
5049
</ItemGroup>
5150

5251
<Import Project="..\..\build\assets.props" />

src/Servers/IIS/IISIntegration/src/Microsoft.AspNetCore.Server.IISIntegration.csproj

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
<Reference Include="Microsoft.Extensions.Logging.Abstractions" />
2525
<Reference Include="Microsoft.Extensions.Options" />
2626
<Reference Include="System.IO.Pipelines" />
27-
<Reference Include="System.Security.Principal.Windows" />
2827
</ItemGroup>
2928

3029
</Project>

src/Shared/test/Shared.Tests/Microsoft.AspNetCore.Shared.Tests.csproj

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@
4040
<Reference Include="System.IO.Pipelines" />
4141
<Reference Include="System.Reflection.Metadata" />
4242
<Reference Include="System.Runtime.CompilerServices.Unsafe" />
43-
<Reference Include="System.Security.Principal.Windows" />
4443
<Reference Include="System.Threading.Tasks.Extensions" />
4544
<Reference Include="Microsoft.AspNetCore.Http.Features" />
4645
<Reference Include="Microsoft.AspNetCore.Http" />

src/SignalR/common/Http.Connections/src/Microsoft.AspNetCore.Http.Connections.csproj

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@
3434
<Reference Include="Microsoft.AspNetCore.Http" />
3535
<Reference Include="Microsoft.AspNetCore.Routing" />
3636
<Reference Include="Microsoft.AspNetCore.WebSockets" />
37-
<Reference Include="System.Security.Principal.Windows" />
3837

3938
<Compile Include="$(SharedSourceRoot)ValueStopwatch\*.cs" />
4039
</ItemGroup>

src/Testing/src/Microsoft.AspNetCore.Testing.csproj

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@
2828
<Reference Include="Microsoft.Extensions.DependencyInjection" />
2929
<Reference Include="Microsoft.Extensions.Logging.Console" />
3030
<Reference Include="Microsoft.Extensions.Logging" />
31-
<Reference Include="Microsoft.Win32.Registry" />
3231
<Reference Include="Serilog.Extensions.Logging" />
3332
<Reference Include="Serilog.Sinks.File" />
3433
<Reference Include="System.ValueTuple" />
@@ -45,6 +44,12 @@
4544
<Reference Include="xunit.extensibility.execution" />
4645
</ItemGroup>
4746

47+
<ItemGroup Condition=" '$(TargetFramework)' == 'netstandard2.0' OR
48+
'$(TargetFramework)' == '$(DefaultNetFxTargetFramework)' OR
49+
'$(MSBuildRestoreSessionId)' == '' ">
50+
<Reference Include="Microsoft.Win32.Registry" />
51+
</ItemGroup>
52+
4853
<ItemGroup Condition="'$(TargetFramework)' == '$(DefaultNetFxTargetFramework)' OR '$(MSBuildRestoreSessionId)' == ''">
4954
<Reference Include="System.Net.Http" />
5055
<Reference Include="System.Runtime.InteropServices.RuntimeInformation" />

src/Tools/Microsoft.dotnet-openapi/src/Microsoft.dotnet-openapi.csproj

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@
1717
<ItemGroup>
1818
<Reference Include="Microsoft.Build" ExcludeAssets="runtime" />
1919
<Reference Include="Microsoft.Build.Locator" />
20-
<Reference Include="Microsoft.Win32.Registry" />
21-
<Reference Include="System.Security.Principal.Windows" />
2220
</ItemGroup>
2321

2422
<ItemGroup>

0 commit comments

Comments
 (0)