From c7e9f0d4c9fbbecff3f50b1fd0fd2fa0d84087ce Mon Sep 17 00:00:00 2001 From: Dustin Campbell Date: Tue, 2 Apr 2024 14:39:13 -0700 Subject: [PATCH] Stop shipping and NGEN'ing various .NET runtime binaries Razor tooling has shipped and NGEN'd versions of the Microsoft.Extensions.* assemblies that it uses (and a couple other assemblies). However, in recent months, these assemblies have been added to Visual Studio in `Common7\IDE\PublicAssemblies`. So, Razor no longer needs to ship them. --- Directory.Packages.props | 6 ++--- .../AssemblyBindingRedirects.cs | 26 ------------------- .../AssemblyCodeBases.cs | 10 ------- ...crosoft.VisualStudio.RazorExtension.csproj | 12 --------- .../source.extension.vsixmanifest | 7 ----- 5 files changed, 3 insertions(+), 58 deletions(-) delete mode 100644 src/Razor/src/Microsoft.VisualStudio.RazorExtension/AssemblyBindingRedirects.cs delete mode 100644 src/Razor/src/Microsoft.VisualStudio.RazorExtension/AssemblyCodeBases.cs diff --git a/Directory.Packages.props b/Directory.Packages.props index c37194c30a..e91bf7eb27 100644 --- a/Directory.Packages.props +++ b/Directory.Packages.props @@ -9,7 +9,7 @@ <_MicrosoftVisualStudioShellPackagesVersion>17.9.36524 <_MicrosoftVisualStudioPackagesVersion>17.10.72-preview <_VisualStudioLanguageServerProtocolVersion>17.10.34-preview - <_MicrosoftExtensionsPackageVersion>6.0.0 + <_MicrosoftExtensionsPackageVersion>8.0.0 <_BenchmarkDotNetPackageVersion>0.13.5.2136 <_MicrosoftVisualStudioExtensibilityTestingVersion>0.1.187-beta <_MicrosoftCodeAnalysisAnalyzersPackageVersion>3.11.0-beta1.24170.2 @@ -76,7 +76,7 @@ @@ -115,7 +115,7 @@ - + diff --git a/src/Razor/src/Microsoft.VisualStudio.RazorExtension/AssemblyBindingRedirects.cs b/src/Razor/src/Microsoft.VisualStudio.RazorExtension/AssemblyBindingRedirects.cs deleted file mode 100644 index f7c756cbca..0000000000 --- a/src/Razor/src/Microsoft.VisualStudio.RazorExtension/AssemblyBindingRedirects.cs +++ /dev/null @@ -1,26 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the MIT license. See License.txt in the project root for license information. - -using Microsoft.VisualStudio.Shell; - -[assembly: ProvideBindingRedirection( - AssemblyName = "Microsoft.Extensions.DependencyInjection", - GenerateCodeBase = true, - PublicKeyToken = "adb9793829ddae60", - OldVersionLowerBound = "0.0.0.0", - OldVersionUpperBound = "6.0.0.0", - NewVersion = "6.0.0.0")] -[assembly: ProvideBindingRedirection( - AssemblyName = "Microsoft.Extensions.DependencyInjection.Abstractions", - GenerateCodeBase = true, - PublicKeyToken = "adb9793829ddae60", - OldVersionLowerBound = "0.0.0.0", - OldVersionUpperBound = "6.0.0.0", - NewVersion = "6.0.0.0")] -[assembly: ProvideBindingRedirection( - AssemblyName = "Microsoft.Extensions.ObjectPool", - GenerateCodeBase = true, - PublicKeyToken = "adb9793829ddae60", - OldVersionLowerBound = "0.0.0.0", - OldVersionUpperBound = "8.0.0.0", - NewVersion = "8.0.0.0")] diff --git a/src/Razor/src/Microsoft.VisualStudio.RazorExtension/AssemblyCodeBases.cs b/src/Razor/src/Microsoft.VisualStudio.RazorExtension/AssemblyCodeBases.cs deleted file mode 100644 index 5ee82c5264..0000000000 --- a/src/Razor/src/Microsoft.VisualStudio.RazorExtension/AssemblyCodeBases.cs +++ /dev/null @@ -1,10 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the MIT license. See License.txt in the project root for license information. - -using Microsoft.VisualStudio.Shell; - -[assembly: ProvideCodeBase(CodeBase = @"$PackageFolder$\Microsoft.Extensions.ObjectPool.dll")] -[assembly: ProvideCodeBase(CodeBase = @"$PackageFolder$\Microsoft.Extensions.DependencyInjection.dll")] -[assembly: ProvideCodeBase(CodeBase = @"$PackageFolder$\Microsoft.Extensions.DependencyInjection.Abstractions.dll")] -[assembly: ProvideCodeBase(CodeBase = @"$PackageFolder$\System.IO.Pipelines.dll")] -[assembly: ProvideCodeBase(CodeBase = @"$PackageFolder$\System.Threading.Channels.dll")] diff --git a/src/Razor/src/Microsoft.VisualStudio.RazorExtension/Microsoft.VisualStudio.RazorExtension.csproj b/src/Razor/src/Microsoft.VisualStudio.RazorExtension/Microsoft.VisualStudio.RazorExtension.csproj index 49a0859df2..0f2eed1d1c 100644 --- a/src/Razor/src/Microsoft.VisualStudio.RazorExtension/Microsoft.VisualStudio.RazorExtension.csproj +++ b/src/Razor/src/Microsoft.VisualStudio.RazorExtension/Microsoft.VisualStudio.RazorExtension.csproj @@ -131,18 +131,6 @@ - - - - - - - - diff --git a/src/Razor/src/Microsoft.VisualStudio.RazorExtension/source.extension.vsixmanifest b/src/Razor/src/Microsoft.VisualStudio.RazorExtension/source.extension.vsixmanifest index 8dddfdd690..a4c0afb6ea 100644 --- a/src/Razor/src/Microsoft.VisualStudio.RazorExtension/source.extension.vsixmanifest +++ b/src/Razor/src/Microsoft.VisualStudio.RazorExtension/source.extension.vsixmanifest @@ -32,12 +32,6 @@ - - - - - - @@ -50,7 +44,6 @@ -