ODataConnectedService icon indicating copy to clipboard operation
ODataConnectedService copied to clipboard

Mismatch between clients created during build(msbuild) and using the ODataConnectedService

Open RootReboot opened this issue 4 years ago • 0 comments

Describe the bug

Clients are generated differently with msbuild and with the ODataConnectedService.

It seems the MsBuild uses the latest Edm.dll that is present in GAC. Sometimes it doesn't. It's super unreliable. While to create the clients the ODataConnectedService uses the OData.Edm.dll that it comes present. Do to the mismatch of this nuget package version the clients are built differently.

Version of the Project affected

ODataConnectedService v0.12.1 VisualStudio Version v16.4 Microsoft.Odata.Client v7.9.0

Temp Solution

Hard code the OData.Edml.dll used when constructing the clients

Expected behavior

The clients are generated based on the OData.Edm.dll installed in the project

Actual behavior

The clients generated using MsBuild sometimes use the OData.Edml.dll installed in the project. The ODataConnectedService generates clients based on the OData.Edml.dlll that is present in the extension.

RootReboot avatar May 18 '21 16:05 RootReboot