Krishnan Unni created THRIFT-5275:
-------------------------------------

             Summary: Compilation error with Thriftwhen used in .Net Framework 
4.6.1 or above
                 Key: THRIFT-5275
                 URL: https://issues.apache.org/jira/browse/THRIFT-5275
             Project: Thrift
          Issue Type: Bug
    Affects Versions: 0.13.0
         Environment: Windows 10
            Reporter: Krishnan Unni


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.

 



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to