Git Product home page Git Product logo

Comments (6)

pha3z avatar pha3z commented on July 21, 2024

I'll add this:

According to the changelog, the only change listed on 3.0 was switching to the factory.. and that's all that was done.

It should always be preferred to target the latest .Net Standard instead of the current flavor of Core when building libraries.

from soaphttpclient.

pmorelli92 avatar pmorelli92 commented on July 21, 2024

Hello @pha3z, the library targets net standard 2.0, it does not target net core api as you can see
here

I don't know the specifics of your project, on what error is giving you, but in any case you can try with 2.2.1 that uses HttpClient instead of the HttpFactory :)

from soaphttpclient.

pha3z avatar pha3z commented on July 21, 2024

I am perplexed. HttpClientFactory is not part of the .Net Standard 2.0 documentation:
Click here to see Microsoft .Net Standard 2 Documentation search results

And if I try to use HttpClientFactory in a .Net Standard 2.0 library, it has no idea what I'm talking about. There's no using prompt offered to suggest a namespace.

How did you conclude that HttpClientFactory is part of the .Net Standard 2.0?

from soaphttpclient.

pmorelli92 avatar pmorelli92 commented on July 21, 2024

Hi @pha3z, I am not arguing that it is part of the net standard, and that is why you can clearly see that it depends on the Microsoft Http Extensions lib. All I am saying is that the library is targeting .net standard :)
It is obvious that if it was part of the net standard, then it will no longer need another dependency, right?

That being said, it should not conflict if you reference the library from a project that uses .net standard 2.0. So your argument about being not compatible to net standard 2.0 is not true.

from soaphttpclient.

pha3z avatar pha3z commented on July 21, 2024

OK I did not understand that it there is an Extensions dependency. I didn't see any dependencies mentioned on the home readme page, and I thought it was a fully self-contained library.

It makes sense now.

from soaphttpclient.

pmorelli92 avatar pmorelli92 commented on July 21, 2024

Dependencies are stated on the nuget package as any other dotnet library has.

By the way, here I created an example so you can see how to use it from .net standard lib.

Glad I could help :)

from soaphttpclient.

Related Issues (16)

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.