Skip to content

Instantly share code, notes, and snippets.

@philiplaureano
Created May 4, 2011 00:45
Show Gist options
  • Save philiplaureano/954549 to your computer and use it in GitHub Desktop.
Save philiplaureano/954549 to your computer and use it in GitHub Desktop.
A sample CSProj file modification for dynamically intercepting thrown exceptions with LinFu.AOP
<PropertyGroup>
<PostWeaveTaskLocation>$(MSBuildProjectDirectory)\$(OutputPath)\..\..\..\lib\LinFu.Core.dll</PostWeaveTaskLocation>
</PropertyGroup>
<UsingTask TaskName="PostWeaveTask" AssemblyFile="$(PostWeaveTaskLocation)" />
<Target Name="AfterBuild">
<PostWeaveTask TargetFile="$(MSBuildProjectDirectory)\$(OutputPath)$(MSBuildProjectName).dll" InterceptAllExceptions="true" />
</Target>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment