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

Compilation error with Thrift when used in .Net Framework 4.6.1 or above

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Works for Me
    • 0.13.0
    • 0.14.0
    • netstd - Library
    • None
    • Windows 10

    Description

      I am trying to execute osquery against my PC using thrift to define the RPC protocols. I generated the .net standard version for csharp language using thrift latest compiler. 

      The I exported my library (.Net Standard) to a nuget package and consumed in a .Net Core project (3.1) as the client. It worked just fine and I was able to executed the queries.

       

      Then I created a .Net 4.6.1 client project and consumed the same .Net Standard library in it and tried to execute the query. Although the project wouldn't even build. It shows a compilation error : 

      The type 'TBaseClient' is defined in an assembly that is not referenced. You must add a reference to assembly 'Thrift, Version=0.13.0.0, Culture=neutral, PublicKeyToken=5792536a45833b9f'

      I have verified and I do have ApacheThrift 0.13.0 ** nuget installed in there. I also tried updating the client framework version from 4.6.1 up to 4.8. Same issue.

       

      Attachments

        Activity

          People

            jensg Jens Geyer
            krishnan-unni Krishnan Unni
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: