diff --git a/Dynamitey/Internal/Optimization/InvokeHelper-Regular.cs b/Dynamitey/Internal/Optimization/InvokeHelper-Regular.cs index 59336bf..d9ebed6 100644 --- a/Dynamitey/Internal/Optimization/InvokeHelper-Regular.cs +++ b/Dynamitey/Internal/Optimization/InvokeHelper-Regular.cs @@ -88,11 +88,20 @@ internal static Type EmitCallSiteFuncType(IEnumerable argTypes, Type retur { try { - return BuildProxy.EmitCallSiteFuncType(argTypes, returnType); + //Impromptu Interface version 8.04 + return BuildProxy.DefaultProxyMaker.EmitCallSiteFuncType(argTypes, returnType); } catch (LateType.MissingTypeException ex) - { - throw new TypeLoadException("Cannot Emit long delegates without ImpromptuInterface installed", ex); + { + try + { + //Impromptu Interface 7.X + return BuildProxy.EmitCallSiteFuncType(argTypes, returnType); + } + catch (LateType.MissingTypeException) + { + throw new TypeLoadException("Cannot Emit long delegates without ImpromptuInterface installed", ex); + } } } diff --git a/Tests/Tests.csproj b/Tests/Tests.csproj index 75cb178..437777e 100644 --- a/Tests/Tests.csproj +++ b/Tests/Tests.csproj @@ -5,7 +5,7 @@ - + @@ -17,7 +17,7 @@ - + diff --git a/Version.props b/Version.props index 6d87896..daff1c8 100644 --- a/Version.props +++ b/Version.props @@ -1,5 +1,5 @@ - 3.0.2 + 3.0.3 \ No newline at end of file