We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add MSBuild option to disable aspect injector entirely.
The text was updated successfully, but these errors were encountered:
Hi, for now there is no way to disable injections entirely. And this would be good enhancement!
For now you can disable on per injections basis or per aspect bassis:
[Aspect(Scope.Global)] // Disable all [Log] injections #if !DEBUG [Injection(typeof(Log))] #endif class Log : Attribute { [Advice(Kind.Before)] public void LogCall([Argument(Source.Name)] string name) { Console.WriteLine($"Calling {name}"); } } class Program { // Disable only this particular injection #if !DEBUG [Log] #endif static void Main(string[] args) { Console.WriteLine("Hello World!"); } }
Sorry, something went wrong.
thank you very much
I'll reopen this issue so I can track improvement of this feature: being able to disable AI completely
added full disable switch #104 + new way to get target path #105
09db389
you can now use
<PropertyGroup> <AspectInjectorEnabled>false</AspectInjectorEnabled> </PropertyGroup>
to completely disable AI for specific configurations
released in 2.2.2
pamidur
No branches or pull requests
Add MSBuild option to disable aspect injector entirely.
The text was updated successfully, but these errors were encountered: