Skip to content

Faulty Code generation #37

Description

Describe the bug
When using the Modelbuilder with PAC Versions greater than 1.44.2, this leads to invalid code (see screenshot) while generating C# Models for my Custom API causing CS1061 to be thrown.

This is not a production bug of the build tools (yet?). I'm quite sure this will be an issue as soon as the build tools switch to later pac versions internally which will be a breaking szenario for my use case.

Fehler (aktiv) CS1061 "translateKeyResponse" enthält keine Definition für "Parameters", und es konnte keine zugängliche Parameters-Erweiterungsmethode gefunden werden, die ein erstes Argument vom Typ "translateKeyResponse" akzeptiert (möglicherweise fehlt eine using-Direktive oder ein Assemblyverweis). Plugin, RulesEvaluation.UnitTests
<>EarlyBoundTypes\Messages\translateKey.cs 112

Thank you very much for your support!
Best regards!

To Reproduce
Steps to reproduce the behavior:

  1. Create a custom API
  2. Generate C# Class Model with >1.44.2 und <= 1.44.2

Expected behavior
The Model generator should generate correct c# (v4.6.2) Sourcecode

Screenshots
Versions > 1.44.2
Image

Versions <= 1.44.2

Image

My BuilderSettings.json

Image

My Custom API

Image

Desktop (please complete the following information):

  • Windows x64

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions