RuntimeTypeUtility Compile Error

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
paradiddle
Posts: 2
Joined: Wed Sep 12, 2018 8:30 am

RuntimeTypeUtility Compile Error

Post 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!
User avatar
Tony Li
Posts: 22056
Joined: Thu Jul 18, 2013 1:27 pm

Re: RuntimeTypeUtility Compile Error

Post by Tony Li »

Hi,

Please confirm that this patch works for you:

DS_RuntimeTypeUtility_2019-02-03.unitypackage
paradiddle
Posts: 2
Joined: Wed Sep 12, 2018 8:30 am

Re: RuntimeTypeUtility Compile Error

Post 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.
User avatar
Tony Li
Posts: 22056
Joined: Thu Jul 18, 2013 1:27 pm

Re: RuntimeTypeUtility Compile Error

Post 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.
Post Reply