LemonUIbyLemon / LemonUI

LemonUI for .NET (FiveM, RageMP, RagePluginHook and ScriptHookVDotNet 3)
MIT License
177 stars 40 forks source link

ConcurrentDictionary can't be used in RageMP #87

Closed TheOfficialDroid closed 1 year ago

TheOfficialDroid commented 2 years ago

Haven't had a chance to test implementation since I suggest this be added; However, I've had a few minutes spare recently... Tried looking into it with no luck... Currently unable to get anything to draw or compile client-side with the following.


CS0122: 'ConcurrentDictionary<TKey, TValue>' is inaccessible due to its protection level
       -> cs_packages/c_script_dev/thirdparty/LemonUI/LemonUI.cs:589

CS1069: The type name 'CancelEventHandler' could not be found in the namespace 'System.ComponentModel'. This type has been forwarded to assembly 'System.ComponentModel.TypeConverter, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Consider adding a reference to that assembly.
       -> cs_packages/c_script_dev/thirdparty/LemonUI/LemonUI.cs:3477

CS1069: The type name 'CancelEventHandler' could not be found in the namespace 'System.ComponentModel'. This type has been forwarded to assembly 'System.ComponentModel.TypeConverter, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Consider adding a reference to that assembly.
       -> cs_packages/c_script_dev/thirdparty/LemonUI/LemonUI.cs:3485

CS0122: 'ConcurrentDictionary<TKey, TValue>' is inaccessible due to its protection level
       -> cs_packages/c_script_dev/thirdparty/LemonUI/LemonUI.cs:589

CS0122: 'ConcurrentDictionary<TKey, TValue>.Values' is inaccessible due to its protection level
       -> cs_packages/c_script_dev/thirdparty/LemonUI/LemonUI.cs:603

CS1069: The type name 'CancelEventArgs' could not be found in the namespace 'System.ComponentModel'. This type has been forwarded to assembly 'System.ComponentModel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Consider adding a reference to that assembly.
       -> cs_packages/c_script_dev/thirdparty/LemonUI/LemonUI.cs:3078

CS1069: The type name 'CancelEventArgs' could not be found in the namespace 'System.ComponentModel'. This type has been forwarded to assembly 'System.ComponentModel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Consider adding a reference to that assembly.
       -> cs_packages/c_script_dev/thirdparty/LemonUI/LemonUI.cs:3078

CS1069: The type name 'CancelEventArgs' could not be found in the namespace 'System.ComponentModel'. This type has been forwarded to assembly 'System.ComponentModel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Consider adding a reference to that assembly.
       -> cs_packages/c_script_dev/thirdparty/LemonUI/LemonUI.cs:3100

CS1069: The type name 'CancelEventArgs' could not be found in the namespace 'System.ComponentModel'. This type has been forwarded to assembly 'System.ComponentModel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Consider adding a reference to that assembly.
       -> cs_packages/c_script_dev/thirdparty/LemonUI/LemonUI.cs:3100

CS0122: 'ConcurrentDictionary<TKey, TValue>.ContainsKey(TKey)' is inaccessible due to its protection level
       -> cs_packages/c_script_dev/thirdparty/LemonUI/LemonUI.cs:706

CS0122: 'ConcurrentDictionary<TKey, TValue>.TryRemove(TKey, out TValue)' is inaccessible due to its protection level
       -> cs_packages/c_script_dev/thirdparty/LemonUI/LemonUI.cs:718

CS0122: 'ConcurrentDictionary<TKey, TValue>.Values' is inaccessible due to its protection level
       -> cs_packages/c_script_dev/thirdparty/LemonUI/LemonUI.cs:727

CS0122: 'ConcurrentDictionary<TKey, TValue>.Values' is inaccessible due to its protection level
       -> cs_packages/c_script_dev/thirdparty/LemonUI/LemonUI.cs:741

CS0122: 'ConcurrentDictionary<TKey, TValue>.Values' is inaccessible due to its protection level
       -> cs_packages/c_script_dev/thirdparty/LemonUI/LemonUI.cs:754

CS0122: 'ConcurrentDictionary<TKey, TValue>.Values' is inaccessible due to its protection level
       -> cs_packages/c_script_dev/thirdparty/LemonUI/LemonUI.cs:769

C#: No scripts compiled or no RAGE.Events.Script classes found
justalemon commented 2 years ago

Looks like #65 can't be used in RageMP.

TheOfficialDroid commented 2 years ago

Looks like #65 can't be used in RageMP.

I believe System.Collections.Concurrent is available on the server side; However client side its null-pointed like a lot of the assemblies. that aren't mandatory for it to operate; Or in this case, seems to be entirely overridden with an internal variant.

justalemon commented 2 years ago

Yup.