2

I wrote a an aspect called [NLogMethods] that logs method boundry to nlog, based on the example from Postsharp website.

I'd like to apply it to multiple DLLs in my infrastructure, for use in some of my applications.

in order to do this - I need to check out the project file of each DLL, add references to PostSharp, nlog and my aspects DLL, and add an attribute to AssemblyInfo.cs. I rather not do it, but rather do it centrally in the application, or in an external tool.

Is there a way to apply the aspects (to entire assemblies) without editing those assemblies?

skaffman
  • 398,947
  • 96
  • 818
  • 769
user1127788
  • 151
  • 1
  • 1
  • 4

1 Answers1

0

You can setup a batch script to apply the aspect on build.

You can also build a custom targets file, but I can't seem to find the reference for that.

Dustin Davis
  • 14,482
  • 13
  • 63
  • 119