Attributes not recognized on Unit Component

  • November 4, 2018 at 05:07 #24002
    pixlweaver
    Participant

    Is there a trick to getting Attributes to work? I followed both the video tutorials and the documentation in creating an attributes enum, but it is not recognized in the Unit Component. And if I create a new set with Tools > Apex > Attributes Utility, the message “loading new attributes file, please wait…” displays but never completes.

    November 5, 2018 at 10:46 #24010
    Geminior
    Keymaster

    Are you using Assembly Definition files?
    If so you can fix the issue by either editing the AttributesMaster.cs and changing the logic by which attribute enums are resolved, e.g. instead of
    var asm = markerAttribute.Assembly;
    you will want to resolve the assembly that contains your specific enum.

    Alternatively, place your enum in the same assembly as Apex Path.

    November 5, 2018 at 19:02 #24015
    pixlweaver
    Participant

    Oh how strange! I reimported Apex dll files and now my attributes are recognized. Thanks for pointing me in the right direction :)

    November 6, 2018 at 11:12 #24017
    Geminior
    Keymaster

    Super, glad to hear you got it solved :)

You must be logged in to reply to this topic.