Installing PostSharp without NuGet
The most common way to add PostSharp to your project is by installing PostSharp NuGet packages. The main benefit of using NuGet Package Manager is that it provides a standard way to install and manage all dependencies for your .NET projects.
Previous versions of NuGet had several issues that made it an impractical solution for some teams. For this reason, we allow to use PostSharp without NuGet, by downloading and extracting a standard zip file. However, the installation procedure is significantly more cumbersome without NuGet than with NuGet.
To install PostSharp into a project without NuGet:
Download the zip distribution from https://www.postsharp.net/downloads (a file named PostSharp-x.x.x.zip).
Extract the zip file into some local directory.
Using Visual Studio, add references to the relevant PostSharp assemblies. They are located under the lib directory.
Open the project file with a text editor and add the following line just after the last
<Import Project="..\..\..\postsharp\Tools\PostSharp.targets" />