I have built a .NET standard dll that relies on System.Configuration.ConfigurationManager due to the presence of Azure.Cosmos libraries. When adding the required dlls to my ASP.NET 4.7.2 Website Project I get the following error:
Compiler Error Message: CS0433: The type 'System.Configuration.ConfigurationManager' exists in both 'c:\Windows\Microsoft.NET\assembly\GAC_MSIL\System.Configuration\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Configuration.dll' and 'c:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\4382976a\ff659097\assembly\dl3\c46cb292\00cb1086_6aa6d601\System.Configuration.ConfigurationManager.DLL'
- System.Configuration.ConfigurationManager is required by Azure Cosmos libraries
- System.Configuration is required by the ASP.NET Website Project
I have scoured the internet for hours and although I find solutions for Web App Projects, I cannot find anything for legacy Website Projects. I have tried every suggestion I can find, including modifying web.config settings and csproj settings.
Any help out there would be greatly appreciated!