Open papyr opened 2 years ago
@mjrousos could you provide some insights here?
This is similar to #276 (maybe a duplicate?). I think at the very least there should be an analyzer that detects usage of MVC Partials and points users at ViewComponent documentation so that they can learn about the more modern alternative.
I don't think we want to automate changing from partial views to view components for two reasons, though:
@papyr - would a new feature that notices the use of partials in the input app and alerts the user with a warning and links to ViewComponent docs meet the need you see here or did you envision something else with this proposal?
cc @KSchlobohm since I know he had a similar request in the past and may want to weigh in on what a solution looks like.
Hello @mjrousos thanks for the suggestion.
The structure for the two are very similar so, but it sometimes pops up as an issue in the upgrade assistant.
Many of the core workers, are dynamic components with data, like widgets, portlets (cards/charts) are coded as these components.
Compared to Java and Ruby there is such little support for this, So, for the dev community, I was hoping to get an automated or GUI driven migration (with the option to supply the models). The T4 templates are quite standard, so it should be easy to port the code.
Its just that the main meat after the controllers and razor views is the ViewComponents
and it would be a lot of help to have something like this for developers as .NET evolves!
The upgrade process is still very broken and the prompts are not clear. Sometimes the tooling is out of sync with the frameworks installed.
This has to be a better User/Developer experience It has provide better upgrade results
Hello we need help to modernize and upgrade from partials to view components