提交 e1fd310a 编写于 作者: T Tomáš Matoušek

Merge pull request #10591 from tmat/ForceRedirectF

Fix VS binding redirects
......@@ -23,32 +23,12 @@
[assembly: ProvideRoslynBindingRedirection("Microsoft.VisualStudio.LanguageServices.CSharp.dll")]
[assembly: ProvideRoslynBindingRedirection("Microsoft.VisualStudio.LanguageServices.SolutionExplorer.dll")]
[assembly: ProvideBindingRedirection(
AssemblyName = "System.Reflection.Metadata",
OldVersionLowerBound = "0.0.0.0",
OldVersionUpperBound = "1.2.0.0",
NewVersion = "1.3.0.0",
PublicKeyToken = "b03f5f7f11d50a3a",
GenerateCodeBase = true)]
[assembly: ProvideBindingRedirection(
AssemblyName = "System.Collections.Immutable",
OldVersionLowerBound = "0.0.0.0",
OldVersionUpperBound = "1.2.0.0",
NewVersion = "1.2.0.0",
PublicKeyToken = "b03f5f7f11d50a3a",
GenerateCodeBase = true)]
[assembly: ProvideCodeBase(CodeBase = @"$PackageFolder$\Esent.Interop.dll")]
[assembly: ProvideCodeBase(CodeBase = @"$PackageFolder$\Microsoft.CodeAnalysis.Elfie.dll")]
[assembly: ProvideBindingRedirection(
AssemblyName = "Microsoft.DiaSymReader",
OldVersionLowerBound = "0.0.0.0",
OldVersionUpperBound = "1.0.7.0",
NewVersion = "1.0.8.0",
PublicKeyToken = "31bf3856ad364e35",
GenerateCodeBase = true)]
[assembly: ProvideRoslynBindingRedirection("System.Reflection.Metadata.dll")]
[assembly: ProvideRoslynBindingRedirection("System.Collections.Immutable.dll")]
[assembly: ProvideRoslynBindingRedirection("Esent.Interop.dll")]
[assembly: ProvideRoslynBindingRedirection("Microsoft.CodeAnalysis.Elfie.dll")]
[assembly: ProvideRoslynBindingRedirection("Microsoft.DiaSymReader.dll")]
[assembly: ProvideRoslynBindingRedirection("Microsoft.DiaSymReader.PortablePdb.dll")]
[assembly: ProvideCodeBase(CodeBase = @"$PackageFolder$\System.Composition.Convention.dll")]
[assembly: ProvideCodeBase(CodeBase = @"$PackageFolder$\System.Composition.Hosting.dll")]
......
......@@ -19,12 +19,11 @@ public ProvideRoslynBindingRedirectionAttribute(string fileName)
{
// ProvideBindingRedirectionAttribute is sealed, so we can't inherit from it to provide defaults.
// Instead, we'll do more of an aggregation pattern here.
// Note that PublicKeyToken, NewVersion and OldVersionUpperBound are read from the actual assembly version of the dll.
_redirectionAttribute = new ProvideBindingRedirectionAttribute
{
AssemblyName = Path.GetFileNameWithoutExtension(fileName),
PublicKeyToken = "31BF3856AD364E35",
OldVersionLowerBound = "0.7.0.0",
OldVersionUpperBound = "2.0.0.0",
OldVersionLowerBound = "0.0.0.0",
CodeBase = fileName,
};
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册