0
Cannot Reproduce

Building with HoloToolkit - errors CS0234 PropertyProvider

André Ivankio Hauer Ploszaj 3 years ago updated by Lazlo Bonin (Lead Developer) 3 years ago 4

Using: Unity 2018.1.0b13, Bolt 1.3, HoloToolkit. Only similar report I found was an user named Bockelie in Discord 28/11/2017, so I believe it would span other versions.

Trying to build gives me many similar errors listed bellow.

Assets\Ludiq\Ludiq.Core\Generated\Property Providers\PropertyProvider_UnityEngine_EventSystems_EventTrigger_TriggerEvent.cs(16,91): error CS0234: The type or namespace name 'SerializedPropertyProvider<>' does not exist in the namespace 'Ludiq' (are you missing an assembly reference?)
Assets\Ludiq\Ludiq.Core\Generated\Property Providers\PropertyProvider_UnityEngine_EventSystems_EventTrigger_TriggerEvent.cs(15,9): error CS0234: The type or namespace name 'SerializedPropertyProviderAttributeAttribute' does not exist in the namespace 'Ludiq' (are you missing an assembly reference?)
Assets\Ludiq\Ludiq.Core\Generated\Property Providers\PropertyProvider_UnityEngine_EventSystems_EventTrigger_TriggerEvent.cs(15,9): error CS0234: The type or namespace name 'SerializedPropertyProviderAttribute' does not exist in the namespace 'Ludiq' (are you missing an assembly reference?)
Assets\Ludiq\Ludiq.Core\Generated\Property Providers\PropertyProvider_UnityEngine_UI_AnimationTriggers.cs(16,73): error CS0234: The type or namespace name 'SerializedPropertyProvider<>' does not exist in the namespace 'Ludiq' (are you missing an assembly reference?)
Assets\Ludiq\Ludiq.Core\Generated\Property Providers\PropertyProvider_UnityEngine_UI_AnimationTriggers.cs(15,9): error CS0234: The type or namespace name 'SerializedPropertyProviderAttributeAttribute' does not exist in the namespace 'Ludiq' (are you missing an assembly reference?)
...
Error building Player because scripts had compiler errors
Build completed with a result of 'Failed'
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr) UnityEditor.BuildPlayerWindow+BuildMethodException: 49 errors
  at UnityEditor.BuildPlayerWindow+DefaultBuildMethods.BuildPlayer (BuildPlayerOptions options) [0x0021f] in C:\buildslave\unity\build\Editor\Mono\BuildPlayerWindowBuildMethods.cs:182 
  at UnityEditor.BuildPlayerWindow.CallBuildMethods (Boolean askForBuildLocation, BuildOptions defaultBuildOptions) [0x00065] in C:\buildslave\unity\build\Editor\Mono\BuildPlayerWindowBuildMethods.cs:89 
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)

The many errors in "..." were for each of these:

_EventSystems_EventTrigger_TriggerEvent.cs
_UI_AnimationTriggers.cs
_UI_Button_ButtonClickedEvent.cs
_UI_ColorBlock.cs
_UI_Dropdown_DropdownEvent.cs
_UI_Dropdown_OptionDataList.cs
_UI_FontData.cs
_UI_InputField_OnChangeEvent.cs
_UI_InputField_SubmitEvent.cs
_UI_MaskableGraphic_CullStateChangedEvent.cs
_UI_Navigation.cs
_UI_Scrollbar_ScrollEvent.cs
_UI_ScrollRect_ScrollRectEvent.cs
_UI_Slider_SliderEvent.cs
_UI_SpriteState.cs
_UI_Toggle_ToggleEvent.cs

these 3:

error CS0234: The type or namespace name 'SerializedPropertyProvider<>' does not exist in the namespace 'Ludiq' (are you missing an assembly reference?)
error CS0234: The type or namespace name 'SerializedPropertyProviderAttributeAttribute' does not exist in the namespace 'Ludiq' (are you missing an assembly reference?)
error CS0234: The type or namespace name 'SerializedPropertyProviderAttribute' does not exist in the namespace 'Ludiq' (are you missing an assembly reference?)


Bolt Version:
Unity Version:
Platform(s):
Scripting Backend:
.NET Version (API Compatibility Level):
Pending Review

Hm, maybe the issue is that Bolt DLLs aren't being included for the HoloToolkit platform (it wasn't a platform that was available when Bolt shipped).

Try this:

  • Open the Ludiq/Assemblies folder
  • Select these files all at once (Ctrl+Click):
    • Antlr3.Runtime.dll
    • Bolt.Core.Runtime.dll
    • Bolt.Flow.Runtime.dll
    • Bolt.State.Runtime.dll
    • Ludiq.Core.Runtime.dll
    • Ludiq.Graphs.Runtime.dll
  • Make sure you select at the .dll, not .dll.mdb file (extension is hidden in the Unity explorer)
  • If you did that step correctly, the inspector should show a list of platforms without ambiguity (e.g. just checked or unckecked, no [-])
  • Make sure Hololens or however your platform is called is checked
  • Hit Apply

Same errors. Not sure if relevant, those pesky holotoolkit json.net at the top, one is set to Editor and Standalone with assembly info saying it targets .NET 3.5 while the other targets WSAPlayer and assembly info says it targets .NET 4.x

Ah, seeing as you're building for UWP, remember that Bolt is only compatible with the IL2CPP runtime on this.

You can change your runtime in the Player settings.