Creating an instance of MyService will faill because there are two XML metadata files in the assembly ending with MyServiceCsdl.xml
Version of the Project affected
ODataConnectedService all versions
Additional context
To fix quickly, simply replace this line
var resourcePath = global::System.Linq.Enumerable.Single(assembly.GetManifestResourceNames(), str => str.EndsWith(filePath));
with
var resourcePath = global::System.Linq.Enumerable.Single(assembly.GetManifestResourceNames(), str => "." + str.EndsWith(filePath));
Describe the bug
With two services:
Creating an instance of MyService will faill because there are two XML metadata files in the assembly ending with
MyServiceCsdl.xml
Version of the Project affected
ODataConnectedService all versions
Additional context
To fix quickly, simply replace this line
var resourcePath = global::System.Linq.Enumerable.Single(assembly.GetManifestResourceNames(), str => str.EndsWith(filePath));
with
var resourcePath = global::System.Linq.Enumerable.Single(assembly.GetManifestResourceNames(), str => "." + str.EndsWith(filePath));