PostSharp and build pipeline considerations
When it comes to integrating PostSharp into a build pipeline, there are a few key considerations:
- Installation on build server: PostSharp is typically installed on the build server as part of the build process. This ensures that the necessary PostSharp tasks and tools are available during the compilation of your code. The build server needs to have PostSharp installed globally, or at least in a location accessible during the build process. This may involve using tools such as NuGet to manage PostSharp as a package or manually installing it on the build server.
- Build process integration: In your project file (for example,
.csproj
for a C# project), you would typically include references to PostSharp targets or tasks. These references inform the build system to execute PostSharp tasks during the build process. PostSharp tasks will analyze your code and apply the specified aspects. This step usually occurs after the compilation of...