CodeCop 3.2.1

.NET Framework 4.0
NuGet\Install-Package CodeCop -Version 3.2.1
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
dotnet add package CodeCop --version 3.2.1
<PackageReference Include="CodeCop" Version="3.2.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add CodeCop --version 3.2.1
#r "nuget: CodeCop, 3.2.1"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install CodeCop as a Cake Addin
#addin nuget:?package=CodeCop&version=3.2.1

// Install CodeCop as a Cake Tool
#tool nuget:?package=CodeCop&version=3.2.1

CodeCop is a free to use library that builds on top of JSON to provide a fast unobtrusive way to write method interceptors for your .NET apps.
Interceptor placement is independent from your app's code. It's done on a JSON file which means that at anytime you can add or remove interceptors without code changes or redeploys.
Method interception happens in one or all of these stages, before execution, after execution and it is possible also to override the behavior completely.

CodeCop can intercept your code and also other 3rd party assemblies your app depends on.

Product Versions
.NET Framework net40 net403 net45 net451 net452 net46 net461 net462 net463 net47 net471 net472 net48
Compatible target framework(s)
Additional computed target framework(s)
Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

NuGet packages (7)

Showing the top 5 NuGet packages that depend on CodeCop:

Package Downloads

CodeCop Fluent API Wrapper


Interceptor for CodeCop that automatically integrates Statsd onto intercepted methods.


Interceptor for CodeCop that automatically validates if any non-optional method arguments are not null, or in case of strings also not empty.


Interceptor for CodeCop that automatically integrates MiniProfiler onto each intercepted method.


Ever wanted to inject dependencies into PostSharp method interception aspects in a seamless way? Meet AutoAspectResolver, just plug-in you DI container of choice and watch PostSharp aspect dependencies being resolved at runtime with the help of CodeCop.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
3.2.1 2,829 3/10/2016
3.2.0 1,455 2/14/2016
3.1.2 1,391 1/23/2016
3.1.1 1,599 12/21/2015
3.1.0 1,505 12/21/2015
3.0.0 2,388 11/25/2015
2.1.1 2,749 11/11/2015
2.0.0-pre 1,559 11/6/2015
1.3.3 1,597 10/29/2015
1.3.2 1,444 10/29/2015
1.3.1 1,277 10/20/2015
1.3.0 1,446 10/11/2015
1.2.9 1,523 10/11/2015
1.2.8 1,390 10/9/2015
1.2.7 1,633 10/9/2015
1.2.6 1,803 10/8/2015
1.2.5 1,675 10/8/2015
1.2.4 2,245 10/7/2015
1.2.3 2,060 10/7/2015
1.2.2 1,659 10/6/2015
1.2.1 1,766 10/5/2015
1.2.0 2,686 10/3/2015
1.1.7 2,348 9/28/2015
1.1.6 2,935 9/27/2015

v3.2.1 fixes the reported bug of not being able to get the sender pointer when intercepting structs. (

Visit for full product information.
Read the project's wiki at for details on how to get started.
Issues? Please report them at