From d7883a08c28738dd398db962d1e72041879e3c16 Mon Sep 17 00:00:00 2001 From: Rami Date: Sat, 2 Nov 2024 23:39:20 -0700 Subject: [PATCH] Fixed assembly binding redirection Fixed extension identity internal name --- CHANGELOG.md | 3 +++ ...PackageReferenceVersionToAttributeExtension.csproj | 1 + .../Properties/AssemblyBindingRedirects.cs | 11 +++++++++++ .../publishManifest.json | 2 +- 4 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 src/PackageReferenceVersionToAttributeExtension/Properties/AssemblyBindingRedirects.cs diff --git a/CHANGELOG.md b/CHANGELOG.md index da9d413..d312903 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,8 @@ # Change Log +## v1.0.1103.27 (November 3rd, 2024) + - Fixed assembly binding redirection error which may occur when loading the extension + ## v1.0.1102.24 (November 2nd, 2024) - Fixed [#2](https://github.com/icnocop/PackageReferenceVersionToAttribute/issues/2) - Added support for converting all projects in a solution, and converting multiple selected projects. - Fixed [#1](https://github.com/icnocop/PackageReferenceVersionToAttribute/issues/1) - Preserved the XML declaration if it exists. diff --git a/src/PackageReferenceVersionToAttributeExtension/PackageReferenceVersionToAttributeExtension.csproj b/src/PackageReferenceVersionToAttributeExtension/PackageReferenceVersionToAttributeExtension.csproj index da4c231..d679dd9 100644 --- a/src/PackageReferenceVersionToAttributeExtension/PackageReferenceVersionToAttributeExtension.csproj +++ b/src/PackageReferenceVersionToAttributeExtension/PackageReferenceVersionToAttributeExtension.csproj @@ -51,6 +51,7 @@ + diff --git a/src/PackageReferenceVersionToAttributeExtension/Properties/AssemblyBindingRedirects.cs b/src/PackageReferenceVersionToAttributeExtension/Properties/AssemblyBindingRedirects.cs new file mode 100644 index 0000000..d1105e2 --- /dev/null +++ b/src/PackageReferenceVersionToAttributeExtension/Properties/AssemblyBindingRedirects.cs @@ -0,0 +1,11 @@ +// +// Copyright (c) Rami Abughazaleh. All rights reserved. +// + +using Microsoft.VisualStudio.Shell; + +[assembly: ProvideBindingRedirection( + AssemblyName = "Microsoft.Extensions.DependencyInjection", + OldVersionLowerBound = "0.0.0.0", + OldVersionUpperBound = "8.0.0.0", + NewVersion = "8.0.0.0")] \ No newline at end of file diff --git a/src/PackageReferenceVersionToAttributeExtension/publishManifest.json b/src/PackageReferenceVersionToAttributeExtension/publishManifest.json index 85ee0f5..cf36a82 100644 --- a/src/PackageReferenceVersionToAttributeExtension/publishManifest.json +++ b/src/PackageReferenceVersionToAttributeExtension/publishManifest.json @@ -5,7 +5,7 @@ "coding" ], "identity": { - "internalName": "PackageReferenceVersionToAttribute" + "internalName": "PackageReferenceVersionToAttributeExtension" }, "assetFiles": [ {