3
votes

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.

1

1 Answers

3
votes

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