Giter Club home page Giter Club logo

Comments (11)

geoperez avatar geoperez commented on August 28, 2024

@falahati I'm not quite sure to understand your issue, can you elaborate it with a sample code?

from embedio.

falahati avatar falahati commented on August 28, 2024

Unfortunately I dont have access to my development computer now.
But for now if it helps I try to clearify.
I wanted to write a custom request handler. For doing so I need to add a Map object. Am I correct?
Well, for processing these request I need to use ResponseHandler delegate. In definition of this delegate you used a reference to System.Net.HttpListenerContext.
But this type is not available in portable class profiles. So I cant use the delegate.
We need to have a local proxy class for this type in main project and fix the delegate defination.
I will post a sample code asap

from embedio.

geoperez avatar geoperez commented on August 28, 2024

Did you have the sample code?

from embedio.

mariodivece avatar mariodivece commented on August 28, 2024

Is this fixed because of #41 ?

from embedio.

geoperez avatar geoperez commented on August 28, 2024

I don't think so, the requirement seems to be different but I'm not quite sure to understand it.

from embedio.

falahati avatar falahati commented on August 28, 2024

Well this problem was about PCL profiles. But now nuget package is not even supported on PCL profiles. So as there is no official support for any of PCL profiles for now, this issue is not related any more.

However, I strongly suggest making the code cross platform so it can be used on different environments.

from embedio.

mariodivece avatar mariodivece commented on August 28, 2024

I am still unsure of what needs to be done here... So @falahati all you need is a PCL build in the NuGet package that used to be there? Was the PCL package ever in the NuGet? We already do have cross-platform support so I don't suspect this would be too hard to do...

from embedio.

geoperez avatar geoperez commented on August 28, 2024

I created a PCL and trying to add EmbedIO, I got this issue:

Error Could not install package 'EmbedIO 1.1.1'. You are trying to install this package into a project that targets '.NETPortable,Version=v4.5,Profile=Profile78', 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 embedio.

geoperez avatar geoperez commented on August 28, 2024

@falahati which Profile are you using?

from embedio.

falahati avatar falahati commented on August 28, 2024

Won't work with any of PCL profiles.
I can't use a sample code to show you the problem now that it is impossible to install the NuGet package on PCL profiles. In fact, I can't even check to see if you actually solved the problem with #41 as you said.
So for now, the first step is to have a cross-platform portable library that can be used in PCL projects.

Now, I can see that you have two different projects for .NetCore and .Net4 so you can't actually merge these two projects into a PCL project. I suggest looking into the bait-and-switch pattern for this. You need to have a PCL project with the same name and copy your classes into it but without any actual code. Replacing all codes with "NotImplementedException". You can have another PCL library to share codes between you dummy project. .NetCore project and .Net4.5 code if it helps as well.
Now you need to make sure that all three projects (Dummy PCL one, .NetCore and .net4.5) are sharing one namespace, same name and same version.
After this, with a little tweaking of NuGet packages, you can have a true cross-platform library with each platform using the correct version of Library and PCL is possible.

Sorry I am little slow to reply :)

from embedio.

mariodivece avatar mariodivece commented on August 28, 2024

PCL will not be supported, as it has been superseded bye .NET Standard, which embedio supports as a build target. Closing issue.

from embedio.

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.