c# - ASP.NET 网站项目中的冲突引用
问题描述
由于 Azure.Cosmos 库的存在,我构建了一个依赖 System.Configuration.ConfigurationManager 的 .NET 标准 dll。将所需的 dll 添加到我的 ASP.NET 4.7.2 网站项目时,我收到以下错误:
编译器错误消息:CS0433:“c:\Windows\Microsoft.NET\assembly\GAC_MSIL\System.Configuration\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Configuration.dll”中都存在“System.Configuration.ConfigurationManager”类型和 'c:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\4382976a\ff659097\assembly\dl3\c46cb292\00cb1086_6aa6d601\System.Configuration.ConfigurationManager.DLL'
- Azure Cosmos 库需要 System.Configuration.ConfigurationManager
- ASP.NET 网站项目需要 System.Configuration
我已经在互联网上搜索了几个小时,虽然我找到了 Web 应用程序项目的解决方案,但我找不到任何旧网站项目的解决方案。我已经尝试了所有可以找到的建议,包括修改 web.config 设置和 csproj 设置。
任何帮助将不胜感激!
解决方案
推荐阅读
- python - 使用 hmac-sha256 将 PHP 代码转换为 Python - Base64
- c# - 使用 Breeze.Sharp.BaseEntity 类时,如何手动通知框架属性更改?
- api - Google Oauth 和 API 配额消耗
- php - PHP:如何计算多维数组中的相同值
- mariadb - 在 Tableau Desktop 上安装 MariaDB 连接器
- excel - Excel VBA将A列中的字符串复制到同一行的B
- javascript - 如何避免在 ExtJS 7.x 中使用 Ext.view.View 重叠行?
- amazon-web-services - 收到“Your AWS Free Tier Period is Expiring”后该怎么办
- sql - SQL - 删除最近的重复记录
- java - 我无法为图像按钮设置 onclick 侦听器