.net core Dot Net Core 2.0中的Postsharp 5.0.31.0-在System.Reflection.TypeInfo类型中找不到与给定谓词匹配的名为get_Assembly的方法

.net core Dot Net Core 2.0中的Postsharp 5.0.31.0-在System.Reflection.TypeInfo类型中找不到与给定谓词匹配的名为get_Assembly的方法,.net-core,postsharp,.net Core,Postsharp,我是PostSharp的热心用户,正在使用他们的“Essentials”许可证。我正在尝试将我的DotNetCore代码从1.1升级到2.0,PostSharp不再按预期工作。我创建了一个简单的控制台应用程序,当它是1.1时工作,当我切换到2.0时,它会抛出一个未处理的异常,错误如下 Unhandled exception (5.0.31.0, postsharp-net40-x86-srv.exe, CLR 4.0.30319.460798, Release): PostSharp.Sdk.

我是PostSharp的热心用户,正在使用他们的“Essentials”许可证。我正在尝试将我的DotNetCore代码从1.1升级到2.0,PostSharp不再按预期工作。我创建了一个简单的控制台应用程序,当它是1.1时工作,当我切换到2.0时,它会抛出一个未处理的异常,错误如下

 Unhandled exception (5.0.31.0, postsharp-net40-x86-srv.exe, CLR 4.0.30319.460798, Release): PostSharp.Sdk.CodeModel.BindingException: Cannot find a method named get_Assembly in type System.Reflection.TypeInfo matching the given predicate.
    at PostSharp.Sdk.CodeModel.ModuleDeclaration.FindMethod(TypeDefDeclaration typeDef, String methodName, BindingOptions bindingOptions, Predicate`1 predicate)
    at PostSharp.Sdk.CodeModel.InstructionWriterExtensions.EmitAssemblyOf(BaseInstructionWriter writer, ITypeSignature type, TargetFramework targetFramework)
    at ^RIeE65/59SwT.^Pzwdu7KO.Emit(InstructionWriter _0, InstructionBlock _1, TypeInitializationClientScopes _2)
    at PostSharp.Sdk.AspectInfrastructure.TypeInitializationManager.^m\.QsIzuy.^B00Ft6I1yuz9(WeavingContext _0, InstructionBlock _1)
    at PostSharp.Sdk.CodeWeaver.Weaver.^MNbVhYZw(MethodDefDeclaration _0)
    at PostSharp.Sdk.CodeWeaver.Weaver.Weave()
    at PostSharp.Sdk.AspectInfrastructure.TypeInitializationManager.^r4DISfQ8()
    at ^YRTd8AcBbva/.Execute()
    at PostSharp.Sdk.Extensibility.Project.ExecutePhase(String phase)
    at PostSharp.Sdk.Extensibility.Project.Execute()
    at PostSharp.Hosting.PostSharpObject.ExecuteProjects()
    at PostSharp.Hosting.PostSharpObject.InvokeProject(ProjectInvocation projectInvocation)
 Context:
 Weaver.WeaveMethod( {PostSharp.ImplementationDetails_84298fea.<>z__a_2.#cctor} ).  ConsoleApp1 C:\Users\cselbert\.nuget\packages\postsharp\5.0.31\build\PostSharp.targets  329 
我有什么遗漏吗?我甚至已经清除了“C:\ProgramData\Postsharp”文件夹,但什么都没用

这是许可证问题吗?还有其他人成功地从1.1升级到DotNetCore 2.0吗


我甚至卸载并重新安装了PostSharp 5.0.31.0…

当前的PostSharp 5.0版本看起来与.NET Core 2.0和.NET Standard 2.0不兼容


PostSharp 5.1计划支持.NET标准2.0和.NET核心2.0。
 using System;
 using PostSharp.Aspects;
 using PostSharp.Serialization;

 namespace ConsoleApp1
 {
     class Program
     {
         static void Main(string[] args)
         {
             var aspectTest = new AspectTest();
             aspectTest.ThrowException();
             Console.ReadLine();
         }
     }

     [PSerializable]
     public sealed class HandleExceptionAttribute : OnExceptionAspect
     {
         public override void OnException(MethodExecutionArgs eventArgs)
         {
             Console.WriteLine(eventArgs.Instance);

             eventArgs.FlowBehavior = FlowBehavior.Return;
         }
     }

     [HandleException]
     public class AspectTest
     {
         public void ThrowException()
         {
             throw new Exception("Throwing Exception");
         }
     }
 }