Error building Windows Store app

FlowCanvas Forums Support Error building Windows Store app

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1417
    rambutan2000
    Participant

    Hi! I get the following error when I try and build my Unity project targeting Windows store. I know its flow canvas causing this as I created an empty project, builds fine, then import flow canvas from the store and I get this error when I try and build:

    AssemblyResolutionException: Failed to resolve assembly: ‘System.Runtime, Version=4.0.20.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a’
    Mono.Cecil.BaseAssemblyResolver.Resolve (Mono.Cecil.AssemblyNameReference name, Mono.Cecil.ReaderParameters parameters)
    Mono.Cecil.BaseAssemblyResolver.Resolve (Mono.Cecil.AssemblyNameReference name)
    Mono.Cecil.DefaultAssemblyResolver.Resolve (Mono.Cecil.AssemblyNameReference name)
    Mono.Cecil.MetadataResolver.Resolve (Mono.Cecil.TypeReference type)
    Mono.Cecil.ModuleDefinition.Resolve (Mono.Cecil.TypeReference type)
    Mono.Cecil.TypeReference.Resolve ()
    UnityEditor.AssemblyReferenceChecker.InheritsFromMonoBehaviour (Mono.Cecil.TypeReference type) (at C:/buildslave/unity/build/Editor/Mono/Utils/AssemblyReferenceChecker.cs:192)
    UnityEditor.AssemblyReferenceChecker.InheritsFromMonoBehaviour (Mono.Cecil.TypeReference type) (at C:/buildslave/unity/build/Editor/Mono/Utils/AssemblyReferenceChecker.cs:194)
    UnityEditor.AssemblyReferenceChecker.InheritsFromMonoBehaviour (Mono.Cecil.TypeReference type) (at C:/buildslave/unity/build/Editor/Mono/Utils/AssemblyReferenceChecker.cs:194)
    UnityEditor.AssemblyReferenceChecker.InheritsFromMonoBehaviour (Mono.Cecil.TypeReference type) (at C:/buildslave/unity/build/Editor/Mono/Utils/AssemblyReferenceChecker.cs:194)
    UnityEditor.AssemblyReferenceChecker.InheritsFromMonoBehaviour (Mono.Cecil.TypeReference type) (at C:/buildslave/unity/build/Editor/Mono/Utils/AssemblyReferenceChecker.cs:194)
    UnityEditor.AssemblyReferenceChecker.InheritsFromMonoBehaviour (Mono.Cecil.TypeReference type) (at C:/buildslave/unity/build/Editor/Mono/Utils/AssemblyReferenceChecker.cs:194)
    UnityEditor.AssemblyReferenceChecker.MethodIsMouseEvent (Mono.Cecil.MethodDefinition method) (at C:/buildslave/unity/build/Editor/Mono/Utils/AssemblyReferenceChecker.cs:177)
    UnityEditor.AssemblyReferenceChecker.CollectReferencedAndDefinedMethods (Mono.Cecil.TypeDefinition type, Boolean isSystem) (at C:/buildslave/unity/build/Editor/Mono/Utils/AssemblyReferenceChecker.cs:156)
    UnityEditor.AssemblyReferenceChecker.CollectReferencedAndDefinedMethods (IEnumerable`1 assemblyDefinitions) (at C:/buildslave/unity/build/Editor/Mono/Utils/AssemblyReferenceChecker.cs:120)
    UnityEditor.AssemblyReferenceChecker.CollectReferences (System.String path, Boolean collectMethods, Single progressValue, Boolean ignoreSystemDlls) (at C:/buildslave/unity/build/Editor/Mono/Utils/AssemblyReferenceChecker.cs:111)
    UnityEditor.AssemblyReferenceChecker.GetScriptsHaveMouseEvents (System.String path) (at C:/buildslave/unity/build/Editor/Mono/Utils/AssemblyReferenceChecker.cs:276)
    UnityEditor.HostView:OnGUI()

    Thanks!

    #1419
    Gavalakis
    Keymaster

    Hello there,

    Unfortunately this is a known Unity bug with Widows Store Apps, when using a certain name (OnMouse_X) in on-MonoBehaviour scripts.
    To “fix” this, please find and delete these two FlowCanvas files from the project:
    MouseAgent2DEvents.cs
    MouseAgentEvents.cs

    Please let me know if deleting these two files allows you to build correctly.
    Thank you.

    Join us on Discord: https://discord.gg/97q2Rjh

    #1420
    rambutan2000
    Participant

    Thanks! Yes I can now build on 5.6.0f3. Apparently its fixed in 5.6.0p1 and 2017.1

    #1421
    Gavalakis
    Keymaster

    Hey,
    Great! Thanks for the follow up and for letting me know 🙂

    Join us on Discord: https://discord.gg/97q2Rjh

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.