Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Any plans for DNX and asp.net core? #12

Open
kevin5464 opened this issue Mar 15, 2016 · 16 comments
Open

Any plans for DNX and asp.net core? #12

kevin5464 opened this issue Mar 15, 2016 · 16 comments

Comments

@kevin5464
Copy link

No description provided.

@erwan
Copy link
Contributor

erwan commented Mar 15, 2016

Hi Kevin,

What's do you mean, what's required to be compatible with DNX?

@kevin5464
Copy link
Author

Well - while I was waiting, I forked the code and pulled it down to recompile as asp.net core (update1).

In short, a few things changed:

  • HttpUtility is now WebUtility
  • I removed all Cache options because caching is different in core, and I've already got that working outside of this gateway request pipeline

Essentially, fork the code, load the C# classes into a new asp.net core class library project, and get it to compile and successfully run tests.

@erwan
Copy link
Contributor

erwan commented Mar 17, 2016

Is it possible to do so without breaking compatibility for people not using DNX yet?

@kevin5464
Copy link
Author

Yes - it will compile with either 4.5.1 or 5.0.

When I get a little free time, I'll do a formal pull request if you're interested in checking it out.

We're using it right now in our asp.net core app and it's working like a charm - thanks for working on it!

@erwan
Copy link
Contributor

erwan commented Mar 23, 2016

It's good to hear!

Thank you for the help, a PR is welcome but we may wait until the official release of Core 1.0 before releasing a version of the kit integrating it.

@BjornPoppe
Copy link

.NET Core is now released, any updates on a release of csharp-kit for core?

@erwan
Copy link
Contributor

erwan commented Oct 10, 2016

Yes, we're planning to do it but we don't have an ETA yet. We're busy on other fronts for now, but eventually we'll tackle this.

@PhilipBathe
Copy link

Did Kevin5464 ever do that pull request by any chance?

@snehahebbar
Copy link

Will there be a package compatible with .Net Core?

@benembery
Copy link
Contributor

benembery commented Aug 9, 2017

I've forked this and have it working in a production environment with no issues. Though my implementation doesn't you use all the possible fragments. Unfortunately, I have no access to the "Les Bonne Chose" repository so can't run any of the tests.

I would be uncomfortable submitting a pull request without proof that those tests work.
https://github.com/benembery/csharp-kit/tree/dotnet-standard

To use this I built the updated package in VS2017 and put the resulting nuGet package and in a packages folder in my project. You then need to add a nuget.config that looks something like this. I've tested this building on both a Mac and in Visual Studio Team Services and deployment to Azure.

<?xml version="1.0" encoding="utf-8"?>
    <configuration>
  <packageSources>
    <add key="AspNetVNext" value="https://www.myget.org/F/aspnetcidev/api/v3/index.json" />
    <add key="NuGet" value="https://api.nuget.org/v3/index.json" />
    <add key="Local" value="./packages" />
  </packageSources>
</configuration>

Hope this helps.

@srenault
Copy link
Contributor

For you information, we plan to update the kit to use the asp.net core.

@DavidDeSloovere
Copy link

.NET Standard is what you want to target, that way the lib will run in both .NET core and the full .NET framework. You can go for 1.6 or 2.0. I wouldn't bother with 1.6 anymore though.
More information https://docs.microsoft.com/en-us/dotnet/standard/net-standard

@benembery
Copy link
Contributor

benembery commented Feb 1, 2018

@DavidDeSloovere see #15.
I've create a PR to support 1.6 and retain .NET 4.5 backwards compatability. I've build a version of package and I'm using it on a few different projects with no issues.

Unfortunately, I lack the knowledge of Travis (and time) to update the CI build.

@DavidDeSloovere
Copy link

If prismic wants to up its marketshare, I'm sure they'll fix that.

@bjomi
Copy link

bjomi commented Apr 23, 2018

Please have a look at and merge the pull request mentioned above. Working with packages that doesn't support netstandard is awful. For most developers these days I would say. So please fix this now!

@benembery
Copy link
Contributor

This can now be closed. https://github.com/adaptivewebworks/prismicio-netstandard-kit covers this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants