When I try to add an OData-Service to a legacy .NET Framework project, which already has a Service Reference to a WCF Service, i get the error message "Value does not fall within the expected range." after "Generating Client Proxy for OData V4...".
Version of the Project affected
ODataConnectedService 2022+ v1.0.0 and earlier
VisualStudio Version v17.4.5
Microsoft.Odata.Client v7.14.1
To Reproduce
Steps to reproduce the behavior:
Create a new .NET Framework console project
Add a folder named "Service References" to the project
Replace "Folder" with "WCFMetadata" for the created folder in the project file:
The folder name "Connected Services" is hard-coded in the ConnectedServiceFileHandler. In legacy projects the services root folder doesn't always have this name.
Related to #137
Describe the bug
When I try to add an OData-Service to a legacy .NET Framework project, which already has a Service Reference to a WCF Service, i get the error message "Value does not fall within the expected range." after "Generating Client Proxy for OData V4...".
Version of the Project affected
ODataConnectedService 2022+ v1.0.0 and earlier VisualStudio Version v17.4.5 Microsoft.Odata.Client v7.14.1
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The OData-Service is added successfully.
Actual behavior
The addition of the service to the project fails.
Additional context
The folder name "Connected Services" is hard-coded in the ConnectedServiceFileHandler. In legacy projects the services root folder doesn't always have this name.