Skip to content

Question: Use at build time? #518

@M-Schiller

Description

@M-Schiller

Thank you for creating this amazing tool and apologies for posting a question here, but I could not find a guide to or usage of what I would like to have in a project I am developing.

Currently, I use a version of XmlSchemaClassGenerator.Console that I need to check into a repository (under tools\..) and use in my project as

  <Target Name="Create classes from schema" BeforeTargets="PreBuildEvent" AfterTargets="Clean">
      <Message Importance="high" Text="Running batch script..." />
      <Exec Command=".\tools\xscgen\XmlSchemaClassGenerator.Console.exe .\data\MySchema.xsd" />
  </Target>

What I am trying to achieve is a way of handling this via the NuGet package and without having to install the dotnet tool (if possible) so that I can also use the functionality in a build pipeline that does not have any tools installed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions