3

I have several projects and wish to apply aspects across multiple projects. I use the multicast attribute like so:

[assembly:MyProject.Aspects.NotifiableObject(
    AttributeTargetAssemblies = "MyProject.Entities",
    AttributeTargetTypes = "MyProject.Entities.*")]

This is placed in a AspectInfo.cs file inside my main project. This approach however does not seem to work. The entities inside MyProject.Entities do not recieve the NotifiableObject aspect. There is a similar question here, but that did not solve my problem.

Community
  • 1
  • 1
Tri Q Tran
  • 5,500
  • 2
  • 37
  • 58

1 Answers1

3

You cannot do this. You have to add Postsharp to each project.

ILovePaperTowels
  • 1,445
  • 2
  • 17
  • 30