I have a .net core xUnit project that references a .net framework project that references Microsoft's Azure Notification Hub API.
It builds, but when try and create a hub, I get the error...
Could not load file or assembly 'System.Configuration.ConfigurationManager, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51
Which seems like an odd error to get given that System.Configuration is referenced.
How do I make the Azure referencing project act like a framework 4.7 project?
You can use the Full . NET Framework (TFM) with . NetCore 2.0, but how?
https://learn.microsoft.com/en-us/dotnet/standard/choosing-core-framework-server According to this document, the answer is no.
NET Core installations are completely independent from the version of . NET Framework. In fact, you can actually install multiple version of . NET Core side-by-side on the same machine (unlike .
If you are targeting .NET Core, make sure you've referenced NuGet package System.Configuration.ConfigurationManager
.
See related question: Is ConfigurationManager.AppSettings available in .NET Core 2.0?
Microsoft just shipped a new version that's compatible to .NET Standard 2.0,
https://azure.microsoft.com/en-us/updates/azure-notifications-hubs-net-sdk-now-compatible-with-net-standard-2-0/
Please upgrade your SDK to use that. Of course, you need to make other changes according to their documentation.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With