Mixedrealitytoolkit-unity: error CS0433: The type 'ICloneable' exists in both 'Microsoft.Windows.MixedReality.DotNetWinRT, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' and 'netstandard, Version=2.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51

Created on 6 Apr 2020  路  5Comments  路  Source: microsoft/MixedRealityToolkit-Unity

Describe the bug

I use websocket in bestHTTP to send messages. But I get the following error during compilation. How can I solve it?

error:
Assets\Best HTTP (Pro)\BestHTTP\SecureProtocol\x509\store\IX509Selector.cs(11,11): error CS0433: The type 'ICloneable' exists in both 'Microsoft.Windows.MixedReality.DotNetWinRT, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' and 'netstandard, Version=2.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'

IX509Selector.cs
code:

if !BESTHTTP_DISABLE_ALTERNATE_SSL && (!UNITY_WEBGL || UNITY_EDITOR)

pragma warning disable

// compile with: /reference:Microsoft.Windows.MixedReality.DotNetWinRT.dll /reference:System=netstandard.dll
using System;

namespace BestHTTP.SecureProtocol.Org.BouncyCastle.X509.Store
{
public interface IX509Selector

if !(SILVERLIGHT || PORTABLE || NETFX_CORE)

    : ICloneable

endif

{

if SILVERLIGHT || PORTABLE || NETFX_CORE

    object Clone();

endif

    bool Match(object obj);
}

}

pragma warning restore

endif

Screenshots

If applicable, add screenshots to help explain your problem.

Your setup (please complete the following information)

  • Unity Version . 2018.4.2f1
  • MRTK Version v2.2
    Microsoft Mixed Reality Toolkit 2.2.0

    Target platform (please complete the following information)

    HoloLens 2

Bug

All 5 comments

@dfields-msft, have you seen this?

Can someone help me?

Sorry for the delay responding, @tjhappy - we took this offline and diagnosed a problem with the Microsoft.Windows.MixedReality.DotnetWinRT package. A new version will be published shortly with a fix. Thanks for your patience!

The fixed version is published here, please update your package and let us know if it resolves your issue:
https://www.nuget.org/packages/Microsoft.Windows.MixedReality.DotNetWinRT/0.5.1049

Great. After theGreat. After the update, the problem has been solved. Thank you update, the problem has been solved. Thank you

Was this page helpful?
0 / 5 - 0 ratings