Page 1 of 1

RuntimeTypeUtility Compile Error

Posted: Sun Feb 03, 2019 10:06 am
by paradiddle
Hello,

Assets/Plugins/Pixel Crushers/Common/Scripts/Misc/RuntimeTypeUtility.cs(47,89): error CS1061: Type `System.Reflection.Assembly' does not contain a definition for `IsDynamic' and no extension method `IsDynamic' of type `System.Reflection.Assembly' could be found. Are you missing an assembly reference?

Unity ver. 2017.4.19
Platform iOS

I've tried to set 'Api Compatibility Level' to .NET 2.0 or .NET 2.0 Subset, but it makes no difference.

Help!
Thank you!

Re: RuntimeTypeUtility Compile Error

Posted: Sun Feb 03, 2019 3:49 pm
by Tony Li
Hi,

Please confirm that this patch works for you:

DS_RuntimeTypeUtility_2019-02-03.unitypackage

Re: RuntimeTypeUtility Compile Error

Posted: Mon Feb 04, 2019 9:05 am
by paradiddle
Hi Tony,

The patch fixed RuntimeTypeUtility, but three more errors popped up.

Assets/Plugins/Pixel Crushers/Common/Scripts/Editor/Misc/TypeUtility.cs(50,89): error CS1061: Type `System.Reflection.Assembly' does not contain a definition for `IsDynamic' and no extension method `IsDynamic' of type `System.Reflection.Assembly' could be found. Are you missing an assembly reference?


Assets/Plugins/Pixel Crushers/Dialogue System/Scripts/Editor/Custom Field Types/CustomFieldTypeService.cs(233,89): error CS1061: Type `System.Reflection.Assembly' does not contain a definition for `IsDynamic' and no extension method `IsDynamic' of type `System.Reflection.Assembly' could be found. Are you missing an assembly reference?


Assets/Plugins/Pixel Crushers/Quest Machine/Scripts/Editor/Quest Editors/Utility/QuestEditorUtility.cs(28,89): error CS1061: Type `System.Reflection.Assembly' does not contain a definition for `IsDynamic' and no extension method `IsDynamic' of type `System.Reflection.Assembly' could be found. Are you missing an assembly reference?

I noticed you added 'but unsupported in some iOS' in the comment. Is it caused by Unity 2017's iOS module?

I'm using both DS and Quest Machine.

Re: RuntimeTypeUtility Compile Error

Posted: Mon Feb 04, 2019 11:10 am
by Tony Li
Hi,

Thanks! I wanted to make sure that addressed the issue before throwing a bunch of files at you. Yes, it's particular to versions of .NET, Unity, and iOS. Here is the complete patch collection. It should handle all cases. Please import all three files since you're using DS & QM.
These fixes will also be in the next releases of DS & QM.