Uploaded image for project: 'Thrift'
  1. Thrift
  2. THRIFT-5577

netstd namespace directive creates matching subfolders

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Not A Problem
    • 0.16.0
    • 0.17.0
    • netstd - Compiler
    • None

    Description

      If I add a namespace directive to the .thrift file, and I specify the output folder, the thrift compiler creates a set of sub-folders matching the namespace which is not useful.

      e.g. I have a project called 

      MyCompany.MyFeature.Xyz

      and I have a .thrift file with

      namespace netstd MyCompany.MyFeature.Xyz.Thrift

      and I use

      thrift-0.16.0.exe --gen netstd --out .\thrift rpc.thrift

      Then I get sub-folders

      MyCompany.MyFeature.Xyz\Thrift\MyCompany\MyFeature\Xyz\Thrift\<files.cs>

      What I expect is for the generated files to be placed in folder Thrift, e.g.

      MyCompany.MyFeature.Xyz\Thrift\<files.cs>

      to match the namespace.

       

       

      Attachments

        Activity

          People

            jensg Jens Geyer
            ImpPhil3 Philip Lee
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: