Skip to content

Commit a85b55b

Browse files
authored
React to NuGet package pruning warnings (#60395)
* React to NuGet package pruning warnings Contributes to dotnet/sdk#46829 NuGet added a new feature that automatically prunes package and project references that are provided by the shared framework that is targeted. Resolve warnings that get emitted when building non-source-only. * Remove System.Private.Uri dependency * Remove version as well
1 parent 9c410aa commit a85b55b

File tree

18 files changed

+5
-24
lines changed

18 files changed

+5
-24
lines changed

eng/Dependencies.props

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,6 @@ and are generated based on the last package release.
8686
<LatestPackageReference Include="System.Net.Http.Json" />
8787
<LatestPackageReference Include="System.Net.Sockets" />
8888
<LatestPackageReference Include="System.Net.ServerSentEvents" />
89-
<LatestPackageReference Include="System.Private.Uri" />
9089
<LatestPackageReference Include="System.Reflection.Metadata" />
9190
<LatestPackageReference Include="System.Runtime.InteropServices.RuntimeInformation" />
9291
<LatestPackageReference Include="System.Runtime.Caching" />

eng/Versions.props

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,6 @@
219219
<SystemComponentModelVersion>4.3.0</SystemComponentModelVersion>
220220
<SystemNetHttpVersion>4.3.4</SystemNetHttpVersion>
221221
<SystemNetSocketsVersion>4.3.0</SystemNetSocketsVersion>
222-
<SystemPrivateUriVersion>4.3.2</SystemPrivateUriVersion>
223222
<SystemSecurityCryptographyX509CertificatesVersion>4.3.2</SystemSecurityCryptographyX509CertificatesVersion>
224223
<SystemRuntimeInteropServicesRuntimeInformationVersion>4.3.0</SystemRuntimeInteropServicesRuntimeInformationVersion>
225224
<SystemThreadingTasksExtensionsVersion>4.5.4</SystemThreadingTasksExtensionsVersion>

src/Azure/AzureAppServices.HostingStartup/src/Microsoft.AspNetCore.AzureAppServices.HostingStartup.csproj

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
<ItemGroup>
1414
<Reference Include="Microsoft.AspNetCore.AzureAppServicesIntegration" />
1515
<Reference Include="Microsoft.Extensions.Configuration.EnvironmentVariables" />
16-
<Reference Include="System.Text.Json" />
1716
</ItemGroup>
1817

1918
<ItemGroup>

src/Components/WebAssembly/DevServer/src/Microsoft.AspNetCore.Components.WebAssembly.DevServer.csproj

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
<ItemGroup>
2222
<Reference Include="Microsoft.AspNetCore" />
2323
<Reference Include="Microsoft.AspNetCore.Components.WebAssembly.Server" />
24-
<Reference Include="System.Text.Json" />
2524

2625
<PackageReference Include="Microsoft.DotNet.Build.Tasks.Templating" PrivateAssets="All" Version="$(MicrosoftDotNetBuildTasksTemplatingVersion)" IsImplicitlyDefined="true" AllowExplicitReference="true" />
2726
</ItemGroup>

src/Components/test/testassets/BasicTestApp/BasicTestApp.csproj

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@
2828
<Reference Include="Microsoft.AspNetCore.SignalR.Client" />
2929
<Reference Include="Microsoft.Extensions.Logging.Configuration" />
3030
<Reference Include="Newtonsoft.Json" />
31-
<Reference Include="System.Private.Uri" />
3231
</ItemGroup>
3332

3433
<ItemGroup>

src/Features/JsonPatch/src/Microsoft.AspNetCore.JsonPatch.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
</ItemGroup>
2323

2424
<ItemGroup>
25-
<Reference Include="Microsoft.CSharp" />
25+
<Reference Include="Microsoft.CSharp" Condition="'$(TargetFrameworkIdentifier)' != '.NETCoreApp'" />
2626
<Reference Include="Newtonsoft.Json" />
2727
</ItemGroup>
2828

src/Logging.AzureAppServices/src/Microsoft.Extensions.Logging.AzureAppServices.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
<Reference Include="Microsoft.Extensions.Logging.Abstractions" />
1919
<Reference Include="Microsoft.Extensions.Logging.Configuration" />
2020
<Reference Include="Microsoft.Extensions.Logging" />
21-
<Reference Include="System.ValueTuple" />
21+
<Reference Include="System.ValueTuple" Condition="'$(TargetFrameworkIdentifier)' != '.NETCoreApp'" />
2222
</ItemGroup>
2323

2424
<ItemGroup Condition="'$(TargetFramework)' == '$(DefaultNetFxTargetFramework)' OR '$(MSBuildRestoreSessionId)' == ''">

src/Servers/IIS/IIS/perf/Microbenchmarks/IIS.Microbenchmarks.csproj

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@
3737
<ItemGroup>
3838
<Reference Include="BenchmarkDotNet" />
3939
<Reference Include="Microsoft.AspNetCore.Server.IISIntegration" />
40-
<Reference Include="System.Private.Uri" />
4140

4241
<Compile Include="$(SharedSourceRoot)BenchmarkRunner\*.cs" />
4342
</ItemGroup>

src/Servers/IIS/IIS/samples/NativeIISSample/NativeIISSample.csproj

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
<Reference Include="Microsoft.AspNetCore.Server.IIS" />
1515
<Reference Include="Microsoft.AspNetCore.Server.IISIntegration" />
1616
<Reference Include="Microsoft.AspNetCore.Server.Kestrel" />
17-
<Reference Include="System.Private.Uri" />
1817
</ItemGroup>
1918

2019
</Project>

src/Servers/IIS/IIS/test/IIS.Tests/IIS.Tests.csproj

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
<Reference Include="Microsoft.AspNetCore.Server.IIS" />
2222
<Reference Include="Microsoft.Extensions.Logging" />
2323
<Reference Include="System.Diagnostics.EventLog" />
24-
<Reference Include="System.Private.Uri" />
2524
</ItemGroup>
2625

2726
<ItemGroup>

0 commit comments

Comments
 (0)