You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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));
The text was updated successfully, but these errors were encountered:
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));
The text was updated successfully, but these errors were encountered: