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
the .TT and .TTINCLUDE templates are included in the package for the CLI, but, it appears that they are used at COMPILE time to generate the ODataT4CodeGenerator.CS file which is then compiled directly into the CODEGEN project.
In the actual connected service extension (that runs in Visual studio), the templates can be part of the output Client Odata library, and as such can be customized and then the Connected Service Client generated using the those custom templates
Version of the Project affected
ODataConnectedService v0.4.x
VisualStudio Version v16.4
Microsoft.Odata.Client v7.6.x
To Reproduce
Steps to reproduce the behavior:
Install the Client Generator CLI
Go to the TEMPLATES folder
Modify the ODataT4CodeGenerator.TT file
Run the CLI to generate a client for a project
Note that the Generated code DOES NOT include any customizations that you made to the TT template in step 3
Expected behavior
I expect the Templates that are installed in the "Templates" folder to be used for OData Client generation, not a compiled in copy of the templates.
Actual behavior
The CLI ALWAYS uses the version of the templates that existed when the CLI was built to generate OData Client code.
That's essentially what the Connected Service does from Visual Studio.
Screenshots
Additional context
The text was updated successfully, but these errors were encountered:
Describe the bug
the .TT and .TTINCLUDE templates are included in the package for the CLI, but, it appears that they are used at COMPILE time to generate the ODataT4CodeGenerator.CS file which is then compiled directly into the CODEGEN project.
In the actual connected service extension (that runs in Visual studio), the templates can be part of the output Client Odata library, and as such can be customized and then the Connected Service Client generated using the those custom templates
Version of the Project affected
ODataConnectedService v0.4.x
VisualStudio Version v16.4
Microsoft.Odata.Client v7.6.x
To Reproduce
Steps to reproduce the behavior:
Expected behavior
I expect the Templates that are installed in the "Templates" folder to be used for OData Client generation, not a compiled in copy of the templates.
Actual behavior
The CLI ALWAYS uses the version of the templates that existed when the CLI was built to generate OData Client code.
That's essentially what the Connected Service does from Visual Studio.
Screenshots
Additional context
The text was updated successfully, but these errors were encountered: