Quantcast
Channel: Active questions tagged nuget-package - Stack Overflow
Viewing all articles
Browse latest Browse all 3067

How do binding redirects currently work for ExcelDNA plugins?

$
0
0

I am currently stuck in dependency hell with an Excel DNA plugin that uses the Azure SDK to talk to a blob store.

I am encountering the issue outlined here https://github.com/Azure/azure-sdk-for-net/issues/39798 to which the suggested resolution is to enable Automatic Binding Redirects. However it's not clear to me if ExcelDNA supports this, especially given this open bug: https://github.com/Excel-DNA/ExcelDna/issues/241. I tried the workaround here and it didn't help

Is there a way to manually configure a binding redirect in such a way that the plugin is sure to pick it up or are automatic binding redirects now working?

Error Message:System.IO.FileLoadExceptionHResult=0x80131040Message=Could not load file or assembly 'System.Diagnostics.DiagnosticSource, Version=6.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)Source=Azure.IdentityStackTrace:at Azure.Core.Pipeline.DiagnosticScopeFactory..ctor(String clientNamespace, String resourceProviderNamespace, Boolean isActivityEnabled, Boolean suppressNestedClientActivities, Boolean isStable)at Azure.Core.Pipeline.ClientDiagnostics..ctor(ClientOptions options, Nullable1 suppressNestedClientActivities) at Azure.Identity.CredentialPipeline..ctor(TokenCredentialOptions options) at Azure.Identity.CredentialPipeline.<>c.<.cctor>b__17_0() at System.Lazy1.CreateValue()at System.Lazy`1.LazyInitValue()at Azure.Identity.CredentialPipeline.GetInstance(TokenCredentialOptions options, Boolean IsManagedIdentityCredential)at Azure.Identity.InteractiveBrowserCredential..ctor(String tenantId, String clientId, TokenCredentialOptions options, CredentialPipeline pipeline, MsalPublicClient client)at Azure.Identity.InteractiveBrowserCredential..ctor()at DataTool.SyncConfigFiles.d__0.MoveNext() in C:\Repros\CT---DataTool\Data Tool\SyncConfigFiles.cs:line 38

I believe I need a binding redirect to V6.0.1.0 which is packed into the xll but nothing I try seems to help

I was expecting to be able to enable Automatic Binding Redirects, as advised, to fix the issue in the Azure SDK. However ExcelDNA does not seem to support this and the problem doesn't go away


Viewing all articles
Browse latest Browse all 3067

Trending Articles