Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DispatchProxy 4.8.0 not usable and breaks compiling against netstandard2.0 #194

Open
mconnew opened this issue Jan 14, 2025 · 0 comments
Open

Comments

@mconnew
Copy link
Member

mconnew commented Jan 14, 2025

The new release of DispatchProxy 4.8.0 breaks libraries targeting netstandard2.0. CoreWCF still targets netstandard2.0 and has a class which derives from DispatchProxy. The Invoke method was defined like this in the 4.7 release:

protected abstract object? Invoke(MethodInfo? targetMethod, object?[]? args);

In the 4.8.0 version, for netstandard2.0 only, it's defined as:

protected object Invoke(MethodInfo targetMethod, object[] args)

As the whole purpose of DispatchProxy was to enable deriving from it and providing an Invoke method to dispatch interface calls to, removing abstract from the method completely removes the ability to use the class at all. The 4.8 version is broken and unusable for netstandard2.0.

To be clear, this breaks compilation of existing projects that referenced 4.7.0 when upgrading to 4.8.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant