Assembly Level Aspect

muratozcankariyer's Avatar

muratozcankariyer

28 Aug, 2018 02:08 PM

Hello,
If we wanted the aspect we wrote in Net Framework to run throughout the entire application, we would write the code in the AssemblyInfo.cs file as shown in the following image.

But there is no AssemblyInfo.cs file on Net Core. How do I do this on Net Core?

  1. Support Staff 1 Posted by PostSharp Techn... on 28 Aug, 2018 02:18 PM

    PostSharp Technologies's Avatar

    Hello,

    For this purpose you can add your own empty file to the project and call it GlobalAspects.cs or some similar name. Then add your aspect to the new file whenever you need to apply this aspect to the whole project.

    -alex

  2. Support Staff 2 Posted by PostSharp Techn... on 11 Sep, 2018 03:44 PM

    PostSharp Technologies's Avatar

    Hello,

    We are going to close this request as we believe it was answered. Please feel free to reopen the discussion if you need more help.

    Best regards,
    PostSharp Team

  3. PostSharp Technologies closed this discussion on 11 Sep, 2018 03:44 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac