Github user aloneguid commented on the issue:

    https://github.com/apache/thrift/pull/1355
  
    @Jens-G THRIFTCORE is a simple pre-processor directive which when set 
excludes files which require dependency on external libraries in .NET Standard, 
essentially producing a minimal library of Thrift.
    
    At the moment you have csharp library for .NET 3.5 and 4.5. Then, there is 
another library for .NET Core which to be honest is completely useless as it 
downloads so many dependencies that it's impossible to use in any web project 
as they quickly become conflicting. Ideally there must be just one single .NET 
project which cross-compiles to both .NET classic and .NET Standard. There is 
no need for .NET Core as .NET Standard covers it (is it maybe coming from 
misunderstanding of library creators in differences between .net core and .net 
standard?).
    
    All I'm adding is a new project referencing all existing files. The project 
simply excludes stuff which is not covered by least common denominator of .NET 
Standard 1.4, 1.6 and .NET 4.5, but allows you to use Thrift on any device. 
This can be carefully extended further to support all Thrift features. however 
it's more complicated with .NET Standard as unlike .NET it doesn't have all 
socketing, networking etc. built in and needs external references.
    
    I would suggest though having 1 main package with core functionality as I 
just did, and adding more libraries which implement specific features (sockets, 
web http etc.) as they require specific dependencies.


---

Reply via email to