Closed PetrBodnar closed 4 months ago
Hello @PetrBodnar,
I'm not entirely familiar with Microsoft.Bcl.AsyncInterfaces.dll and how it works; how did you install it?
If I were to make a guess on how to work around this issue, I would say that creating a directory in your asset folder, along with an asmref to our plugin, you should be able to define a "fake" version of the Interface, and that might work. This is a guess though, because I don't know how you have things configured.
As another work around, you could also install the plugin as a UPM that you decompress outside of the Assets directory, then do any modifications needed.
I'm not entirely familiar with Microsoft.Bcl.AsyncInterfaces.dll and how it works; how did you install it?
It's installed as part of third-party plugin, at path
Assets/ThirdPartyPlugin/Plugins/Microsoft.Bcl.AsyncInterfaces.dll
with following settings:
Thank you, I think we will try:
Sounds good!
I'm going to close this issue then: if you find a solution that works I'd be willing to look at a PR to see if it's possible to incorporate it into out Plugin so that others don't stumble on a similar issue.
As a last 'hint', now that I can see the Microsoft.Bcl.AsyncInterfaces.dll is being auto reference, I'm betting that's the issue, as that will force it to be added to all assemblies, even if we don't have support for that feature.
Good luck!
Describe the bug If project contains Microsoft.Bcl.AsyncInterfaces.dll than compile error occurs
Library/PackageCache/com.playeveryware.eos@024a48d770/Runtime/Core/Config.cs(156,13): error CS0518: Predefined type 'System.IAsyncDisposable' is not defined or imported
Desktop (please complete the following information): Mac OS 14.1.1 (23B81) Editor Unity 2021.3.14f1 eos_plugin_for_unity v3.1.0
Additional context We have a code that relies on Microsoft.Bcl.AsyncInterfaces.dll that we cant remove due to business reasons. We tried to remove Microsoft.Bcl.AsyncInterfaces.dll and code that uses it (as an experiment), and project compiles without issues.