VS Mac "Operation Not Supported On This Platform" RRS feed

  • Question

  • Hello!

    I'm a new user to VS on Mac and found this error when running a program.

    In reference to "KeyHashAlgorithm" I get an error "Operation Not Supported On This Platform". Sorry for the elementary questions, but does this mean I can't build this solution on my Mac? Are there any work-arounds here?

    VS Community 2017 7.4.2

    Thanks in advance!

            static byte[] HmacSHA256(String data, byte[] key)
                String algorithm = "HmacSHA256";
                KeyedHashAlgorithm kha = KeyedHashAlgorithm.Create(algorithm);
                kha.Key = key;
                return kha.ComputeHash(Encoding.UTF8.GetBytes(data));

    Friday, April 6, 2018 2:39 AM

All replies

  • Hi,

    Welcome to MSDN forum.

    This forum is discussing Visual Studio WPF/SL Designer, Visual Studio Guidance Automation Toolkit, Developer Documentation and Help System, and Visual Studio Editor. You can go to here to talk about the questions in visual studio for MAC.

    Best regards,


    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, April 9, 2018 9:49 AM