Giter Site home page Giter Site logo

ASP.NET Core RC2? about awatts HOT 3 OPEN

braincrumbz avatar braincrumbz commented on June 24, 2024
ASP.NET Core RC2?

from awatts.

Comments (3)

Jargon64 avatar Jargon64 commented on June 24, 2024 1

@BrainCrumbz Ok, no problem. I was drawn here for the routing middleware as ASP.NET Core RC2 module has broken the URL rewriting for IIS. I was unable to adapt said middleware to RC2 and as a result found a different intermediary workaround.

I have, however, bookmarked this repo as this is one of the few seed projects that has Angular 2.x set up, which I plan to move into in the near future :)

from awatts.

BrainCrumbz avatar BrainCrumbz commented on June 24, 2024

Wrong assumption 😺 . We did not switch yet one of our current projects to RC2. As on a single machine you can only have either RC1 or RC2, we were just waiting a little bit to find some time to try the change. And the change will first be made on such starter project.

So I'd say it's only a matter of time. Then again, it seems that by the end of this month RTM should be out ... so one might wonder whether it's better to do the intermediate step or two-in-one. I think we'll go for the intermediate step anyway.

So, please be patient ... or maybe submit a PR ;)

from awatts.

BrainCrumbz avatar BrainCrumbz commented on June 24, 2024

We already (?) migrated the client side to Angular 2 RC1, so that is sorted (until next Angular update...). I was not aware of such break, i guess you already checked threads like this on SO. As a rough rule of thumb, I've seen people suggesting to avoid URL rewriting rules in IIS altogether for ASP.NET Core (...actually since ASP.NET 5 I think), basically trying to avoid putting custom directives in web.config at all. For such needs as rewrites, they suggested changing your setup in the various Startup methods.

If you're talking about redirecting for a Single Page Application scenario, where you want to allow deeplinking, and thus you want your server side to redirect not found URLs to home, we struggled with that a little and then we made a custom middleware as well. Yet, nothing to be put in web.config

BTW happy to know that this project might be useful to you in the future!

from awatts.

Related Issues (3)

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.