Search Unity

  1. Unity Asset Manager is now available in public beta. Try it out now and join the conversation here in the forums.
    Dismiss Notice

InternalsVisibleToAttribute for assembly definition file

Discussion in '2017.2 Beta' started by bpeake, Jul 8, 2017.

  1. bpeake

    bpeake

    Joined:
    Apr 8, 2013
    Posts:
    22
    Don't know if there is a better place to post feature requests

    Given that NUnit is now being integrated into unity it would be great to be able to define the InternalsVisibleToAttribute for assemblies, that way pieces of code could be made visible to testing assemblies.
     
  2. Peter77

    Peter77

    QA Jesus

    Joined:
    Jun 12, 2013
    Posts:
    6,618
    http://feedback.unity3d.com is most likely the place where Unity wants us to file feature suggestions.
     
  3. superpig

    superpig

    Drink more water! Unity Technologies

    Joined:
    Jan 16, 2011
    Posts:
    4,657
    I think this should already work with the new Assembly Definition Files feature - you'd just stick [assembly:InternalsVisibleTo] into one of the files that is being compiled into your assembly.
     
    DSivtsov, Tony_Max and forestrf like this.
  4. bpeake

    bpeake

    Joined:
    Apr 8, 2013
    Posts:
    22
    Oh good point. I've always set it though an editor.