无法加载文件或程序集'Microsoft.Configuration.ConfigurationBuilders.Azure,版本= 1.0.0.0

时间:2019-11-12 15:02:15

标签: visual-studio dll

试图构建一个新克隆的项目,当我构建时出现此错误

Could not load file or assembly 'Microsoft.Configuration.ConfigurationBuilders.Azure, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. Strong name signature could not be verified.  The assembly may have been tampered with, or it was delay signed but not fully signed with the correct private key. (Exception from HRESULT: 0x80131045)

我尝试过的事情

删除参考并重新添加

将构建属性从调试更改为发行版

使用命令“ sn -Vr通过命令行禁用强名验证 Microsoft.Configuration.ConfigurationBuilders.Azure.dll“

我尝试将参考更新为最新/以前的版本

我尝试了一切,但似乎无济于事,还有其他想法吗?

1 个答案:

答案 0 :(得分:0)

在app.config或Web.config中,删除以下内容:

, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35