Logo
  • Home
  • Documentation
    • Documentation
    • Change Log
    • Features Comparison
  • Tutorials
  • Downloads
  • Forums
  • Get It!
  • Account
    • Register (temporarily disabled)
    • Login // Logout
    • Edit Profile

How do I generate AOTClasses.cs and link.xml via script?

FlowCanvas Forums › Support › How do I generate AOTClasses.cs and link.xml via script?

  • This topic has 1 reply, 2 voices, and was last updated 4 years, 11 months ago by Gavalakis.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • May 21, 2020 at 8:11 pm #2588
    towercrow
    Participant

      Title. Need to generate AOT stubs via C# code for Cloud Build.

      May 21, 2020 at 9:28 pm #2594
      Gavalakis
      Keymaster

        Hello,

        If you want to do this via script, you please have to use the AOTClassesGenerator.GenerateAOTClasses and AOTClassesGenerator.GenerateLinkXML methods respectively.

        Both methods take a string path for where to store the generated file. This has to be a full file path with the file extension. Thus for the AOTClasses it needs to “*anything*.cs” and for the link.xml it has to be, well, “link.xml” 🙂

        Both methods also take a Type[] targetTypes for a collection of types to generate the file for. For the types, you can simply use TypePrefs.GetPreferredTypesList().ToArray() to use the types added in the Preferred Types Editor.

        Please let me know if that works for you.
        Thanks.

      • Author
        Posts
      Viewing 2 posts - 1 through 2 (of 2 total)
      • You must be logged in to reply to this topic.
      Log In

      Home | Contact | Privacy Policy
      Twitter | Discord | YouTube
      Paradox Notion