Giter Site home page Giter Site logo

CoreCLR implementation about amqpnetlite HOT 4 CLOSED

azure avatar azure commented on August 22, 2024
CoreCLR implementation

from amqpnetlite.

Comments (4)

fsoikin avatar fsoikin commented on August 22, 2024

I've managed to get it running on CoreCLR rc1-update1 (and on rc2 as well, barring issue aspnet/dnx#3271)

I had to do three changes for this:

  1. In project.json change the target from dotnet to dnxcore50, otherwise dnx refuses to load the library. I'm not quite sure whether dotnet is now deprecated altogether or if something else was missing. Haven't gotten around to figuring that out yet.
  2. In project.json add the SRAmqp.resx file as namedResource. It seems this file is only required for error reporting though. When everything is ok, its absence is not noticeable, but whenever anything goes wrong, you get a "resource not found" error.
  3. Stop using the Socket.BeginX/EndX methods and rewrite the corresponding tasks in terms of Socket.XAsync, because the former have been removed from the Socket contract in coreclr as of RC1.

My changes are here: fsoikin@c1a000f
Would you be interested in a pull request?

from amqpnetlite.

xinchen10 avatar xinchen10 commented on August 22, 2024

@fsoikin it would be great if you can send a PR. Just a question about item 1: is it a must to replace dotnet with dnxcore50? I read a few online posts about the new way to target frameworks and it is recommended to use dotnet if the library works on any platform as long as the dependencies are met.

from amqpnetlite.

fsoikin avatar fsoikin commented on August 22, 2024

I have read those posts, too, and tried dotnet first, and unfortunately, it doesn't work.

I hesitate to file an issue with the CoreCLR team yet, because they seems to be in the process of tossing these things around a bit. I will check back on this once they hit RTM.

from amqpnetlite.

fsoikin avatar fsoikin commented on August 22, 2024

Created a PR.
My contributor agreement is already signed.

from amqpnetlite.

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.