Skip to content
Discussion options

You must be logged in to vote

The PostSharp NuGet package adds the postcompiler to the project's build. So anytime your code is annotated with an aspect (anytime there is [Log] used in your code in your case), you need the PostSharp NuGet package referenced.

Apps referencing the code, but not having any aspect in their own code, don't need the PostSharp NuGet package installed. If the PostSharp NuGet package is installed in such case, you'd get a warning that there are no aspects and that PostSharp can be disabled. In these apps, you may need to reference PostSharp.Redist NuGet package, that comes with the run-time libraries required to run the app.

See https://doc.postsharp.net/il/introduction/overview/postsharp-comp…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by SkipSailors
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants