Custom Attribute is executed at compile time
问题 I'm trying to create a custom attribute that will work in a sort-of AOP way (I don't have access to postsharp, unfortunately and I'm not very familiar with Unity). It has AttributeUsage.Method and in its constructor it configures some parts of the test environment (pulls some info out of app.config and calls some exes that config the environment). It works, except that right now, when I build the solution, the attribute is executed - which is undesireable. Is there a way to create a custom