Skip to content

Release executable fails with "TcDUT cannot be serialized / parameterless constructor" #1

@FellowWithLaptop

Description

@FellowWithLaptop

Hi there,

I tried to use the latest release (v0.7.3) of protoc-gen-twincat.exe on Windows, but it crashes immediately when processing enums or messages.

The Error:
System.InvalidOperationException: TcHaxx.ProtocGenTc.TcPlcObjects.TcDUT cannot be serialized because it does not have a parameterless constructor.

The Solution:
I was able to fix this locally by cloning the repo and running dotnet build -c Release. The locally built executable works perfectly.

Thanks for this great tool!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions