Search Issue Tracker
Fixed in 2022.2.X
Fixed in 2021.3.X, 2022.1.X
Votes
0
Found in
2021.2
2021.2.12f1
2022.1.0b7
2022.2.0a1
Issue ID
1407597
Regression
Yes
Ambiguous method error when asmdef only targets Editor
Reproduction steps:
1. Open the user's project
Expected result: there are no errors
Actual result: there is an error "error CS0121: The call is ambiguous between the following methods or properties: 'System.ObservableExtensions.Subscribe<T>(System.IObservable<T>, System.Action<T>)' and 'UnitySupport.Plugin.Extensions.Subscribe<T>(System.IObservable<T>, System.Action<T>)'"
Reproducible with: 2021.2.14f1, 2022.1.0b7, 2022.1.0b10, 2022.2.0a1, 2022.2.0a6
Not reproducible with: 2019.4.34f1, 2020.3.30f1, 2022.1.0b6
Workaround:
1. Go to Assets > Editor and press on UnitySupport.Editor.asmdef
2. In the Inspector window under Platforms, note that only the Editor is enabled
3. Enable any runtime platform (e.g. iOS) and press Apply
4. Note that error message goes away
Notes:
- Seems that System.Reactive.Core.dll is automatically referenced if the asmdef targets only the Editor
Comments (1)
-
ccw3
May 02, 2022 14:45
When do you plan bug fixing in 2021.3.X, your Long Term Support release?
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Crash on [NSApplication endModalSession:] when saving while Play Mode is loading
- Incorrect Preferred Height calculation when a single text line uses different Font Assets
- [ShaderGraph] Redo Collapse Nodes action does not fully collapse the Nodes
- [Ubuntu] Mouse cursor is set box select mode after exiting VFX Graph's Rename Context function
- Unrecognized identifier DECLARE_STACK_CB error is thrown when VirtualTexture Property is used with Custom RenderTexture target
Resolution Note (fix version 2022.2):
Fixed in: 2022.2.0a9
Resolution Note (fix version 2022.1):
Fixed in: 2022.1.1f1
Resolution Note (fix version 2021.3):
Fixed in: 2021.3.3f1