ign*_*n23 5 .net c# .net-assembly nuget
我有一个 .NET 4.8 ASP.NET 应用程序,并且添加了 Nuget
Azure.Security.KeyVault.Secrets, 4.3.0.0.
Azure.Identity, .1.6.0.0.
Run Code Online (Sandbox Code Playgroud)
在我的构建脚本上,它将 dll 复制到我的 bin 文件夹中,但是当我调试使用它的代码时,它会抛出错误Could not load file or assembly Azure.Core, Version=1.23.0.0
我检查过,我已经有 1.24.0.0参考。我认为这适用于版本 1.24,因为它在参考 >= 1.23 上说

Pre-bind state information
LOG: DisplayName = Azure.Core, Version=1.23.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8
(Fully-specified)
LOG: Appbase = file:///C:/xxx/
LOG: Initial PrivatePath = C:\xxx\bin
Calling assembly : Azure.Security.KeyVault.Secrets, Version=4.3.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8.
LOG: This bind starts in default load context.
LOG: Using application configuration file: C:\xxx\web.config
LOG: Using host configuration file: C:\Windows\Microsoft.NET\Framework64\v4.0.30319\aspnet.config
LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework64\v4.0.30319\config\machine.config.
LOG: Post-policy reference: Azure.Core, Version=1.23.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8
LOG: Attempting download of new URL file:///C:/Windows/Microsoft.NET/Framework64/v4.0.30319/Temporary ASP.NET Files/aprimo/d096ca4b/f0bd3501/Azure.Core.DLL.
LOG: Attempting download of new URL file:///C:/Windows/Microsoft.NET/Framework64/v4.0.30319/Temporary ASP.NET Files/aprimo/d096ca4b/f0bd3501/Azure.Core/Azure.Core.DLL.
LOG: Attempting download of new URL file:///C:/xxxx/bin/Azure.Core.DLL.
WRN: Comparing the assembly name resulted in the mismatch: Minor Version
ERR: Failed to complete setup of assembly (hr = 0x80131040). Probing terminated.
Run Code Online (Sandbox Code Playgroud)
任何人都知道为什么会发生这种情况。
| 归档时间: |
|
| 查看次数: |
853 次 |
| 最近记录: |