Giter Club home page Giter Club logo

Comments (7)

adamsingle avatar adamsingle commented on July 17, 2024

There shouldn't be any issues with adding it to a PCL. Can you share the errors Xamarin is throwing please?

from c-sharp-promise.

lolohouse avatar lolohouse commented on July 17, 2024

hi, this error:

Could not install package 'RSG.Promise 1.2.2'. You are trying to install this package into a project that targets '.NETPortable,Version=v4.5,Profile=Profile111', but the package does not contain any assembly references or content files that are compatible with that framework. For more information, contact the package author.

from c-sharp-promise.

adamsingle avatar adamsingle commented on July 17, 2024

RSG.Promises is built to work with Unity projects, which are limited to .NET 3.5. It won't build into a project that is higher than that. Yours is set to .NET 4.5

from c-sharp-promise.

ashleydavis avatar ashleydavis commented on July 17, 2024

The code should work with with .NET 4.5, just not the existing projects. Feel free to recreate the project yourself and then you should be able to use it.

from c-sharp-promise.

adamsingle avatar adamsingle commented on July 17, 2024

of course it should. What am I talking about? Shouldn't answer questions first thing in the morning after no sleep. Sorry lolohouse.

from c-sharp-promise.

lolohouse avatar lolohouse commented on July 17, 2024

I have created a PCL library for .net framework 5.5 (profile111) and compiled it perfectly. I just had to change the ApplicationException class by Exception and everything perfect.
You could create a PCL .net 4.5 library and link classes, so it would be compatible with xamarin
Thank you and forgive my English which is not very good

from c-sharp-promise.

RoryDungan avatar RoryDungan commented on July 17, 2024

The latest version of the library no longer uses ApplicationException anywhere so the source should be fully compatible now.

If you'd like to set the project up to also build a library compatible with Xamarin forms we'd be happy to merge it and include that in future releases on Nuget, provided that it doesn't intefere with the .NET 3.5 build.

from c-sharp-promise.

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.