Mismatched Libraries for for Azure.Core nuget RRS feed

  • Question

  • Hello everyone, I'm trying to create a class library using the new Azure SDK and I'm getting errors that seem to be related to the SDK referencing the wrong version of some .NET Framework dlls. Out of the box I get the error "Could not load file or assembly 'Azure.Core, Version=", I'm using Azure.Core version 1.6.0, if I downgrade to Azure.Core then I get another error "System.Threading.Tasks.Extensions, Version=", I have version 4.5.4, Version doesn't even exists.

    I'm using .NET 4.6.1, I have tried upgrading to 4.7.1 just to have similar results. Curiously, I have a console application version of the same code  that works well, I matched the version of all the installed libraries from the working console application to the class library only to get "Could not load file or assembly 'System.Runtime.CompilerServices.Unsafe, Version="  I have 4.6.0 in both versions.

    Any suggestions are welcome,

    Thank you all,


    Friday, November 6, 2020 4:54 PM


All replies

  • Hi LazyCod3r,

    Thank you for posting here.

    Since your question is more related to Azure, I have moved the thread to 'where is the forum for' forum to help you find the correct forum to go ask questions.

    Thank you for your understanding.

    Best Regards,

    Xingyu Zhao

    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Monday, November 9, 2020 3:08 AM
  • I'd try asking for help over here.




    Regards, Dave Patrick ....
    Microsoft Certified Professional
    Microsoft MVP [Windows Server] Datacenter Management

    Disclaimer: This posting is provided "AS IS" with no warranties or guarantees, and confers no rights.

    • Proposed as answer by Guido Franzke Monday, November 9, 2020 6:51 AM
    • Marked as answer by LazyCod3r Tuesday, November 10, 2020 2:41 PM
    Monday, November 9, 2020 3:59 AM