Giter VIP home page Giter VIP logo

Comments (8)

benoitjadinon avatar benoitjadinon commented on September 17, 2024

so I'm contacting the package author ;)

from restease.

canton7 avatar canton7 commented on September 17, 2024

It requires a TypeBuilder, which is only available in .net projects and not pcls. I'm considering changing things so that this restriction is lifted for 2.0, but for now Refit is probably what you're after, unfortunately.

from restease.

benoitjadinon avatar benoitjadinon commented on September 17, 2024

oh ok, too bad ;) thanks

from restease.

canton7 avatar canton7 commented on September 17, 2024

Sorry :( It's one of the trade-offs I made for not having RefitStubs.cs in your project.

from restease.

benoitjadinon avatar benoitjadinon commented on September 17, 2024

what's the issues with the stub ? besides having an ugly random file laying around ? cause if its the only issue blocking the use on mobile platforms, it's too bad

from restease.

canton7 avatar canton7 commented on September 17, 2024

Mainly an ugly random file that constantly changes lying around. Also, I wanted more intelligence in the auto-generated interface implementation: it means we can get away with less reflection, less boxing, things like method overloads work with issue, etc. Also auto-generating IL is much easier than auto-generating C#.

I've got plans to generate the interface implementations at compile-time and inject them into the assembly being compiled, but that's a little way off (I need to get my head around Mono.Cecil first...)

from restease.

ravensorb avatar ravensorb commented on September 17, 2024

Curious if you've gotten back to this? Would LOVE to use this in my Xamarin apps

from restease.

canton7 avatar canton7 commented on September 17, 2024

I went down the route of supporting .net core instead: I support netstandard1.3. I'm not sure where that sits in the PCL nomenclature... The .NET Platform Standard implies that Xamarin supports all netstandard versions.

There were plans to use the source generation features of VS15 to support a wider range of netstandard versions, but they were canned. I then considered using Fody, but that doesn't yet have .net core support either..

from restease.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.