Articy Forum


https://www.articy.com:443/forum/

error using Assembly Definitions

https://www.articy.com:443/forum/viewtopic.php?f=46&t=18480

Page 1 of 1

error using Assembly Definitions

Posted: Mon 3. Dec 2018, 14:37
by JoseDavid
Hi,

I am using Assembly Definitions in my Unity project, but three logs errors occur when I create the Assembly in the ArticyContent folder:

NullReferenceException: Object reference not set to an instance of an object
Articy.Unity.ArticyTypeSystem.OnBeforeSerialize ()

ArgumentOutOfRangeException: Argument is out of range.
Parameter name: index
System.Collections.Generic.List`1[System.String].get_Item (Int32 index) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Collections.Generic/List.cs:633)
Articy.Unity.ArticyTypeSystem.OnAfterDeserialize ()

NullReferenceException: Object reference not set to an instance of an object
ArticyReader.Start () (at Assets/MyScripts/ArticyReader.cs:87)

I probed in an empty project, and the error still occur.
I put the Assembly Definition in this folder because otherwise I cant use the scripts for using the Templates mades in Articy (using Articy.Project_Name;), with the Assembly I can use it but I get the erros.
Is there any way I can use the Assembly Definition or is not possible?

Thanks.

Re: error using Assembly Definitions

Posted: Tue 4. Dec 2018, 10:19
by [Articy] Christian Schildt
Hi JoseDavid,

Unfortunately, it is currently not supported to use Assembly Definitions together with our plugin. But we keep this in mind for a possible feature of a future version.

Best regards,

Chris

Re: error using Assembly Definitions

Posted: Wed 30. Oct 2019, 20:54
by [Articy] Christian Schildt
Update: Meanwhile it is possible to use assembly definitions together with the plugin by enabling “Use assembly definitions” in the plugin settings. This setting will create an assembly definition file for the code that gets generated by plugin, which then can be referenced by other assembly defininitions.

All times are UTC
Page 1 of 1