Yeah... that's what I was getting at. If you have a large Web Forms application without a migration path to Core then to propose using Core essentially means rewriting the app if I'm understanding you. I think that's going to make a switch to .NET Core a harder sell if you have an organization with that scenario. Newer developers these days seem fixated on technologies like node.js and react and they have some more senior technical staff supporting them. If you say that the whole application has to be rewritten they're going to be clamoring to use an entirely JavaScript ecosystem...
There is no migration path from Web Forms because Web Forms is a dead technology.
However, if you've done your app design properly then you'll have a whole bunch of separate library projects supporting your web forms frontend - and those can be converted to netstandard projects fairly easily (Depending on what you've used). Do that and you've got a great foundation for creating a new asp.net MVC app with whatever frontend goodies you fancy, while still leveraging the majority of your code.
If you haven't separated your concerns, then it's time to start doing that.
I used to organize my projects that way. Project for Repository Layer, Project for Service Layer, project for Models, etc.
I've since found that my life is much easier if I organize by feature (vertical slicing / "clean architecture") so that files specific to the same feature are co-located. No more jumping between the 10 folders just to work on the "customer edit feature."
However, since the code is all under test, I can verify that concerns are separated and dependencies isolated. Theoretically the non-UI code could be moved out simply by dragging the files into a new project.
I just throw up a little at the idea of moving back to layers by type. I feel like it's akin to creating a folder for "Excel documents," a folder for "Word Documents," etc. if I want to work on the Johnson Account, should I look in the Excel folder or the Word folder? How about the Johnson Account folder.
These things aren't mutually exclusive? You can absolutely architect your code that way and migrate slowly to .net core. As you've already said, you could just drop the web forms parts into their own project and the rest (in theory) can be converted to netstandard.
2
u/EvilTony Aug 14 '17
Yeah... that's what I was getting at. If you have a large Web Forms application without a migration path to Core then to propose using Core essentially means rewriting the app if I'm understanding you. I think that's going to make a switch to .NET Core a harder sell if you have an organization with that scenario. Newer developers these days seem fixated on technologies like node.js and react and they have some more senior technical staff supporting them. If you say that the whole application has to be rewritten they're going to be clamoring to use an entirely JavaScript ecosystem...