-
Notifications
You must be signed in to change notification settings - Fork 559
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
System.ServiceModel.ClientBase is incompatible between System.ServiceModel.Primitives 6.0.0 and 8.0.0 #5400
Comments
We ran into the same problem. Using the new dotnet-svcutil instead is not possible, see #5404 |
Any update on that? 6.x has dependencies that are being flagged for vulnerabilities. We can't move to 8.x because it's a breaking change, yet we don't know how long 6.x will be getting updated. |
@wasker this is a break change because the code was written for .NET framework. As WCF Client 8.0 release did break this from WCF Client 6.0 to WCF Client 8.0. dotnet-svcutil has never generated these methods. However, this is due to this code was generated from .NET Framework. The temporary work around is to simply remove those from your code. We will work to fix #5404 or any other similar issues. Potentially, you could also use svcutil.exe from.NET Framework SDK tool, and run it with dconly, like |
I'll just add that the missing constructor is documented to exist at .Net 8 ClientBase(String) C# protected ClientBase (string endpointConfigurationName); |
What version will this method signature be available? Thank you! |
Could you please update on fix of this issue. |
Describe the bug
I'm upgrading our projects from .NET 7 to .NET 8 and decided to upgrade System.ServiceModel.Primitives as well. Doing so resulted in a bunch of compilation bugs like
Error CS1503 Argument 1: cannot convert from 'string' to 'System.ServiceModel.Description.ServiceEndpoint'
In service clients that were generated with previous versions of tools.
Expected behavior
Keep legacy ctor definitions to avoid re-generating service clients between upgrades.
The text was updated successfully, but these errors were encountered: