-
-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Compilation error if to use it together with plugin for "oidc-client" (needed for Azure auth) #433
Comments
@IvanMurzak What types from that dll are not included in .Net Standard 2.1? ProtoPromise uses the types from the standard BCL. Typically libraries like that that have types from the BCL automatically work in non-Unity, so it might be a Unity-specific bug. |
@IvanMurzak I assume you are trying to use this with https://www.nuget.org/packages/IdentityModel.OidcClient? I tried with Unity 2022.3.21 using https://github.com/GlitchEnzo/NuGetForUnity, and I didn't see any errors. Maybe you need to update your Unity version? |
The project I am working on has |
Unity's 4.X API compatibility level includes .Net Standard 2.1 APIs (unlike desktop Framework). So, no, netstandard2.1 API compatibility level is not required to use ProtoPromise, but you may need to update your Unity version to get it to work (have you tried that yet?). |
Sorry, that is too risky to update Unity version. I won't do that. I can just try to do that with a copy of the project just to let you know if that works. But it won't be a solution for me. |
@IvanMurzak I tried again using Unity 2022.3.11, with .Net Framework API compatibility level. I'm not seeing any errors with only OidcClient and ProtoPromise installed. Are you able to repro in a separate project with just those 2 libraries? Maybe something else is causing the issue. If so, can you share the steps you are using to install the libraries? |
I will try to reinstall OidcClient. I will reply later |
Closing for no repro. I also think it's not an issue with this library. |
That is the conflict with
Microsoft.Bcl.AsyncInterfaces.dll
, which is part of the Oidc-Client.Unity version 2022.3.11.
Is there any way to avoid the conflict? I can't disable/remove the DLL because the plugin needs other classes from it.
PhotoPromise
looks very impressive, I would like to try it if only it could life together with that dll.The text was updated successfully, but these errors were encountered: