Search code examples
c#load-time-weaving.net-4.6method-interception

CodeCop and .NET 4.6 - why won't it run?


I have recently tried Code Cop 1.3.1 - a method interceptor.

However won't run when .NET Framework 4.6 is installed.


Solution

  • The solution to this is to use the following runtime element set your app.config

    <?xml version="1.0" encoding="utf-8"?>
    <configuration>
      <startup>
        <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5"/>
      </startup>
      <runtime>
        <useLegacyJit enabled="1" />
      </runtime>
    </configuration>