Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Assets\plugins\metro\abc.dll plugin not being used in Unity3d 5.0.2f1.

Discussion in 'Windows' started by akkiDev, May 26, 2015.

  1. akkiDev

    akkiDev

    Joined:
    Aug 7, 2013
    Posts:
    70
    I have 2 dlls one for windows store platform under plugins\metro\ folder and the other one for Editor under plugins folder. But I got the errors when building apps for windows store platform. The errors are like the scripts are not able to find the methods of plugin.
    The type or namespace name 'xyz' could not be found (are you missing a using directive or an assembly reference?)
    I checked the platforms for plugin in Inspector window. i.e WSAplayer for metro dll and Editor for other dll.

    It runs very well on Unity 5.0.1p1, but when I install Unity 5.0.2f1 it starts giving the errors.

    Any Help would be appreciated.

    Thanks.
     
  2. Tomas1856

    Tomas1856

    Unity Technologies

    Joined:
    Sep 21, 2012
    Posts:
    3,672
    Without a repro project, it's really hard to say...
     
  3. akkiDev

    akkiDev

    Joined:
    Aug 7, 2013
    Posts:
    70
    Hello Tomas,
    Its a very simple issue, just put any WSA compatible plugin in metro folder, and try to build for WSA. It won't compile.
    I think it is a bug in Unity side.
     
  4. Tomas1856

    Tomas1856

    Unity Technologies

    Joined:
    Sep 21, 2012
    Posts:
    3,672
    The problem is - we have an automated test which tests exactly this behavior
     
  5. akkiDev

    akkiDev

    Joined:
    Aug 7, 2013
    Posts:
    70
    Did you check the issue on Unity3D version 5.0.2f1 ? It runs fine on Unity3D 5.0.1p1.
     
  6. Tomas1856

    Tomas1856

    Unity Technologies

    Joined:
    Sep 21, 2012
    Posts:
    3,672
    The tests run on every Unity release... so yes, it was checked. Please submit a bug with repro project attached.
     
  7. scbundy

    scbundy

    Joined:
    May 23, 2014
    Posts:
    51
    I'm seeing this exact error. Doing this exact thing (incorporating App42 into a Unity/Windows Store project).
     
  8. scbundy

    scbundy

    Joined:
    May 23, 2014
    Posts:
    51
    Sorry Tomas, but your test is clearly wrong. It doesn't work, and akkidev is right, it used to. It's kinda hard to submit a repro project when some of our projects are well over gigabytes in size. We have to create a dummy project and recreate all these steps. He told you how to recreate the problem, stop asking him to do your job.
     
  9. Kazimieras

    Kazimieras

    Joined:
    Jul 24, 2013
    Posts:
    16
    Such issue happens because of an improvement in Unity 5.0.1p3 patch version for WSA platform:
    "Windows Store Apps: .NET Core plugins without placeholders, won't be passed to Mono compiler, like it was to 4.6.".
    Plugins must share the same name and WSA plugin must have a placeholder field set.
     
  10. scbundy

    scbundy

    Joined:
    May 23, 2014
    Posts:
    51
    Getting close. That solved the initial errors. The scripts all compile now, however, now I'm receiving this error about mid way through the build process:

    ArgumentException: The Assembly App42-Unity3D-SDK-4.0 is referenced by Assembly-CSharp ('Library/ScriptAssemblies/Assembly-CSharp.dll'). But the dll is not allowed to be included or could not be found.
    UnityEditor.AssemblyHelper.AddReferencedAssembliesRecurse (System.String assemblyPath, System.Collections.Generic.List`1 alreadyFoundAssemblies, System.String[] allAssemblyPaths, System.String[] foldersToSearch, System.Collections.Generic.Dictionary`2 cache, BuildTarget target) (at C:/buildslave/unity/build/Editor/Mono/AssemblyHelper.cs:154)
    UnityEditor.AssemblyHelper.FindAssembliesReferencedBy (System.String[] paths, System.String[] foldersToSearch, BuildTarget target) (at C:/buildslave/unity/build/Editor/Mono/AssemblyHelper.cs:192)
    UnityEditor.HostView:OnGUI()
     
  11. Aurimas-Cernius

    Aurimas-Cernius

    Unity Technologies

    Joined:
    Jul 31, 2013
    Posts:
    3,642
    So, this App42-Unity3D-SDK-4.0 is a WSA plugin with a placeholder for editor?
    Maybe it is used transitively?