System.ServiceModel.ClientBase is incompatible between System.ServiceModel.Primitives 6.0.0 and 8.0.0
- Dominant language
- C#
- Stars
- 1.8k
- Forks
- 576
- Avg merge
- 6d 9h
- Merged PRs (30d)
- 2
Description
**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.
```
public Xxx()
{
}
// broken
public Xxx(string endpointConfigurationName) :
base(endpointConfigurationName)
{
}
// broken
public Xxx(string endpointConfigurationName, string remoteAddress) :
base(endpointConfigurationName, remoteAddress)
{
}
// broken
public Xxx(string endpointConfigurationName, System.ServiceModel.EndpointAddress remoteAddress) :
base(endpointConfigurationName, remoteAddress)
{
}
public Xxx(System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress remoteAddress) :
base(binding, remoteAddress)
{
}
```
**Expected behavior**
Keep legacy ctor definitions to avoid re-generating service clients between upgrades.
Contributor guide
Assessment
This issue has not been assessed yet.