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

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,468
    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,616
    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.
     
    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.