c# - CodeCop 和 .NET 4.6 - 为什么它无法运行?

标签 c# load-time-weaving .net-4.6 method-interception

我最近尝试了 Code Cop 1.3.1 - 一个方法拦截器。

但是,安装 .NET Framework 4.6 后将无法运行。

最佳答案

解决这个问题的方法是使用以下runtime元素设置您的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>

关于c# - CodeCop 和 .NET 4.6 - 为什么它无法运行?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33275139/

相关文章:

AspectJ - 编译时与加载时编织

带有 AspectJ : Load time weaving 的 Spring AOP

c# - 使用 C# 的代码编译器接口(interface)

c# - VisualStateManager 中的 UWP 多个 VisualState 触发器

java - AspectJ 和 Spring LTW 在向上转换时不起作用

ASP.NET 中间件不再保留文化

c# - 在 Framework 4.6 项目中使用 .net core DLL

c# - 从局部 View 向页面的 <head> 添加 CSS 引用

c# - 如何设置 ActiveX 控件名称