From 550bd15b011451963887af880928baab18b8d5a9 Mon Sep 17 00:00:00 2001 From: Doug Bunting <6431421+dougbu@users.noreply.github.com> Date: Thu, 25 Feb 2021 17:36:17 -0800 Subject: [PATCH] React to dotnet/runtime#47684, a new transport package (#30405) * React to dotnet/runtime#47684, a new transport package - handle Microsoft.Extensions.Internal.Transport -> 'Microsoft.AspNetCore.Internal.Transport name change - remove `$(...V0Version)` / `%(RTMVersion)` workarounds - remove mention of System.Security.AccessControl package; only need transitive references to that - confirm content of Microsoft.AspNetCore.Internal.Transport package - missing Microsoft.Extensions.DependencyModel assembly * Remove unnecessary `using`s - namespace previously available due to Microsoft.Extensions.Internal.Transport dependency - no need for Microsoft.AspNetCore.Internal.Transport dependency * nit: Clean up "Extensions" naming in Ref project * Correct targeting pack content - intersection w/ `@(ExternalAspNetCoreAppReference)` items added nothing - excluded assemblies now included in transport package --- eng/Dependencies.props | 6 +-- eng/Version.Details.xml | 9 +--- eng/Versions.props | 34 +------------ eng/targets/ResolveReferences.targets | 51 +++---------------- eng/tools/RepoTasks/RepoTasks.csproj | 10 ---- .../test/Routing/RouteTableFactoryTests.cs | 1 - .../Hosting/WebAssemblyHostBuilderTest.cs | 2 - .../src/Microsoft.AspNetCore.App.Ref.csproj | 48 +++++++++-------- 8 files changed, 33 insertions(+), 128 deletions(-) diff --git a/eng/Dependencies.props b/eng/Dependencies.props index f057cc8c6a0d..4858ba89c507 100644 --- a/eng/Dependencies.props +++ b/eng/Dependencies.props @@ -73,8 +73,6 @@ and are generated based on the last package release. - - @@ -109,6 +107,7 @@ and are generated based on the last package release. + @@ -124,7 +123,6 @@ and are generated based on the last package release. - @@ -202,10 +200,8 @@ and are generated based on the last package release. $(%(VersionName)Version) - $(%(VersionName)V0Version) - diff --git a/eng/Version.Details.xml b/eng/Version.Details.xml index 5ae24caa10ec..e9088178afb4 100644 --- a/eng/Version.Details.xml +++ b/eng/Version.Details.xml @@ -177,9 +177,9 @@ https://github.com/dotnet/runtime 12ec2197ed3999c98f49c006a27ee761282df168 - + https://github.com/dotnet/runtime - afd1d33db716e185c6ef77af569db5cfc3ef183a + 12ec2197ed3999c98f49c006a27ee761282df168 https://github.com/dotnet/runtime @@ -233,11 +233,6 @@ https://github.com/dotnet/runtime 12ec2197ed3999c98f49c006a27ee761282df168 - - - https://github.com/dotnet/runtime - 12ec2197ed3999c98f49c006a27ee761282df168 - https://github.com/dotnet/runtime 12ec2197ed3999c98f49c006a27ee761282df168 diff --git a/eng/Versions.props b/eng/Versions.props index fc2b075bffb9..66379a6d1cb9 100644 --- a/eng/Versions.props +++ b/eng/Versions.props @@ -107,7 +107,7 @@ 6.0.0-preview.3.21125.3 6.0.0-preview.3.21125.3 6.0.0-preview.3.21125.3 - 6.0.0-preview.2.21106.9 + 6.0.0-preview.3.21125.3 6.0.0-preview.3.21125.3 6.0.0-preview.3.21125.3 6.0.0-preview.3.21125.3 @@ -119,8 +119,6 @@ 6.0.0-preview.3.21125.3 6.0.0-preview.3.21125.3 6.0.0-preview.3.21125.3 - - 6.0.0-preview.3.21125.3 6.0.0-preview.3.21125.3 6.0.0-preview.3.21125.3 6.0.0-preview.3.21125.3 @@ -161,36 +159,6 @@ --> $(MicrosoftNETCoreAppRuntimewinx64Version) - - - $(MicrosoftWin32RegistryVersion.Split('.')[0]).$(MicrosoftWin32RegistryVersion.Split('.')[1]).0 - $(MicrosoftWin32SystemEventsVersion.Split('.')[0]).$(MicrosoftWin32SystemEventsVersion.Split('.')[1]).0 - $(SystemDiagnosticsEventLogVersion.Split('.')[0]).$(SystemDiagnosticsEventLogVersion.Split('.')[1]).0 - $(SystemDrawingCommonVersion.Split('.')[0]).$(SystemDrawingCommonVersion.Split('.')[1]).0 - $(SystemIOPipelinesVersion.Split('.')[0]).$(SystemIOPipelinesVersion.Split('.')[1]).0 - $(SystemSecurityAccessControlVersion.Split('.')[0]).$(SystemSecurityAccessControlVersion.Split('.')[1]).0 - $(SystemSecurityCryptographyCngVersion.Split('.')[0]).$(SystemSecurityCryptographyCngVersion.Split('.')[1]).0 - $(SystemSecurityCryptographyPkcsVersion.Split('.')[0]).$(SystemSecurityCryptographyPkcsVersion.Split('.')[1]).0 - $(SystemSecurityCryptographyXmlVersion.Split('.')[0]).$(SystemSecurityCryptographyXmlVersion.Split('.')[1]).0 - $(SystemSecurityPermissionsVersion.Split('.')[0]).$(SystemSecurityPermissionsVersion.Split('.')[1]).0 - $(SystemSecurityPrincipalWindowsVersion.Split('.')[0]).$(SystemSecurityPrincipalWindowsVersion.Split('.')[1]).0 - $(SystemWindowsExtensionsVersion.Split('.')[0]).$(SystemWindowsExtensionsVersion.Split('.')[1]).0 - 3.8.0-5.20519.18 diff --git a/eng/targets/ResolveReferences.targets b/eng/targets/ResolveReferences.targets index 23b173a712b3..f09af3bb22f4 100644 --- a/eng/targets/ResolveReferences.targets +++ b/eng/targets/ResolveReferences.targets @@ -244,45 +244,6 @@ Text="Could not resolve this reference. Could not locate the package or project for "%(Reference.Identity)". Did you update baselines and dependencies lists? See docs/ReferenceResolution.md for more details." /> - - - - - - - - - - - - - <_ResolvedCompileFileDefinitionsToChange - HintPath="$([System.String]::new('%(Identity)').Replace('\%(Version)\', '\%(RTMVersion)\').Replace('/%(Version)/', '/%(RTMVersion)/'))" /> - - - <_ResolvedCompileFileDefinitionsToChange Remove="@(_ResolvedCompileFileDefinitionsToChange)" /> - - - <_CompileTfmUsingReferenceAssemblies>false <_CompileTfmUsingReferenceAssemblies @@ -296,8 +257,8 @@ '$(MSBuildProjectName)' != 'RepoTasks' AND ($(_CompileTfmUsingReferenceAssemblies) OR ('$(IsTargetingPackBuilding)' != 'false' AND '$(MSBuildProjectName)' == 'Microsoft.AspNetCore.App.Ref')) "> - diff --git a/eng/tools/RepoTasks/RepoTasks.csproj b/eng/tools/RepoTasks/RepoTasks.csproj index 3c442a1c22ee..7fa995702bcd 100644 --- a/eng/tools/RepoTasks/RepoTasks.csproj +++ b/eng/tools/RepoTasks/RepoTasks.csproj @@ -17,16 +17,6 @@ - - - diff --git a/src/Components/Components/test/Routing/RouteTableFactoryTests.cs b/src/Components/Components/test/Routing/RouteTableFactoryTests.cs index 4a011e848451..5e9636684ee9 100644 --- a/src/Components/Components/test/Routing/RouteTableFactoryTests.cs +++ b/src/Components/Components/test/Routing/RouteTableFactoryTests.cs @@ -6,7 +6,6 @@ using System.Globalization; using System.Linq; using Microsoft.AspNetCore.Components.Routing; -using Microsoft.Extensions.DependencyModel; using Xunit; namespace Microsoft.AspNetCore.Components.Test.Routing diff --git a/src/Components/WebAssembly/WebAssembly/test/Hosting/WebAssemblyHostBuilderTest.cs b/src/Components/WebAssembly/WebAssembly/test/Hosting/WebAssemblyHostBuilderTest.cs index 03aa0c4770b8..eb6526767b45 100644 --- a/src/Components/WebAssembly/WebAssembly/test/Hosting/WebAssemblyHostBuilderTest.cs +++ b/src/Components/WebAssembly/WebAssembly/test/Hosting/WebAssemblyHostBuilderTest.cs @@ -7,10 +7,8 @@ using Microsoft.AspNetCore.Components.Routing; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.DependencyInjection; -using Microsoft.Extensions.DependencyModel; using Microsoft.Extensions.Logging; using Microsoft.JSInterop; -using Microsoft.JSInterop.WebAssembly; using Moq; using Xunit; diff --git a/src/Framework/App.Ref/src/Microsoft.AspNetCore.App.Ref.csproj b/src/Framework/App.Ref/src/Microsoft.AspNetCore.App.Ref.csproj index 85a25b16a759..f287de6c7345 100644 --- a/src/Framework/App.Ref/src/Microsoft.AspNetCore.App.Ref.csproj +++ b/src/Framework/App.Ref/src/Microsoft.AspNetCore.App.Ref.csproj @@ -47,8 +47,8 @@ This package is an internal implementation of the .NET Core SDK and is not meant FrameworkList.xml $(ArtifactsObjDir)$(FrameworkListFileName) - - $(PkgMicrosoft_Extensions_Internal_Transport)\ref\$(TargetFramework)\ + + $(PkgMicrosoft_AspNetCore_Internal_Transport)\ref\$(TargetFramework)\ PackageOverrides.txt @@ -114,38 +114,36 @@ This package is an internal implementation of the .NET Core SDK and is not meant BeforeTargets="_GetPackageFiles" DependsOnTargets="ResolveReferences;FindReferenceAssembliesForReferences"> - <_AvailableExtensionsRefAssemblies Include="$(RuntimeExtensionsReferenceDirectory)*.dll" /> + + <_DisallowedReferenceAssemblies Include=" + Microsoft.Win32.SystemEvents.dll; + System.Drawing.Common.dll; + System.Security.Cryptography.Pkcs.dll" /> + <_AvailableRuntimeRefAssemblies Include="$(RuntimeTransportReferenceDirectory)*.dll" + Exclude="@(_DisallowedReferenceAssemblies->'$(RuntimeTransportReferenceDirectory)%(Filename)%(Extension)')" /> - - - - - - - - - - + + - + + @(ReferencePathWithRefAssemblies->WithMetadataValue('Filename', 'Microsoft.Win32.SystemEvents')); + @(ReferencePathWithRefAssemblies->WithMetadataValue('Filename', 'System.Drawing.Common')); + @(ReferencePathWithRefAssemblies->WithMetadataValue('Filename', 'System.Security.Cryptography.Pkcs'));" /> + Include="@(_ReferencedRuntimeRefAssemblies->'$(RuntimeTransportReferenceDirectory)%(FileName)%(Extension)')" /> - + - + <_AspNetCoreAppPackageOverrides Include="@(AspNetCoreReferenceAssemblyPath->'%(NuGetPackageId)|%(NuGetPackageVersion)')" - Condition="!Exists('$(RuntimeExtensionsReferenceDirectory)%(AspNetCoreReferenceAssemblyPath.NuGetPackageId).dll') AND + Condition="!Exists('$(RuntimeTransportReferenceDirectory)%(AspNetCoreReferenceAssemblyPath.NuGetPackageId).dll') AND '%(AspNetCoreReferenceAssemblyPath.NuGetPackageId)' != 'Microsoft.NETCore.App' AND - '%(AspNetCoreReferenceAssemblyPath.NuGetPackageId)' != 'Microsoft.Extensions.Internal.Transport' AND + '%(AspNetCoreReferenceAssemblyPath.NuGetPackageId)' != 'Microsoft.AspNetCore.Internal.Transport' AND '%(AspNetCoreReferenceAssemblyPath.NuGetSourceType)' == 'Package' " /> - - <_AspNetCoreAppPackageOverrides Include="@(_SelectedExtensionsRefAssemblies->'%(FileName)|$(MicrosoftNETCoreAppRuntimeVersion)')" /> + + <_AspNetCoreAppPackageOverrides Include="@(_ReferencedRuntimeRefAssemblies->'%(FileName)|$(MicrosoftNETCoreAppRuntimeVersion)')" /> <_AspNetCoreAppPackageOverrides Include="@(AspNetCoreReferenceAssemblyPath->'%(FileName)|$(ReferencePackSharedFxVersion)')" Condition=" '%(AspNetCoreReferenceAssemblyPath.ReferenceSourceTarget)' == 'ProjectReference' " />