Skip to content

Single project template for Razor Pages and MVC apps #10345

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

Closed
mkArtakMSFT opened this issue May 17, 2019 · 3 comments
Closed

Single project template for Razor Pages and MVC apps #10345

mkArtakMSFT opened this issue May 17, 2019 · 3 comments
Assignees
Labels
area-mvc Includes: MVC, Actions and Controllers, Localization, CORS, most templates enhancement This issue represents an ask for new feature or an enhancement to an existing one
Milestone

Comments

@mkArtakMSFT
Copy link
Contributor

  • Single project template
  • Option to select view engine: Razor Pages or Razor Views (MVC)
  • Alias existing "mvc" template to this and make it pre-select "Razor Views" for option above:
    • Razor Pages: dotnet new webapp or dotnet new razor
    • MVC: dotnet new webapp --mvc
@mkArtakMSFT mkArtakMSFT added 1 - Ready enhancement This issue represents an ask for new feature or an enhancement to an existing one labels May 17, 2019
@mkArtakMSFT mkArtakMSFT added this to the 3.0.0-preview7 milestone May 17, 2019
@mkArtakMSFT mkArtakMSFT added the area-mvc Includes: MVC, Actions and Controllers, Localization, CORS, most templates label May 17, 2019
@mkArtakMSFT mkArtakMSFT modified the milestones: 3.0.0-preview7, 3.1.0 May 29, 2019
@isaacrlevin
Copy link
Contributor

@mkArtakMSFT @ryanbrandenburg as part of this, does it make sense to refactor the folders for the templates. Right now there is
image

RazorComponents is getting renamed to BlazorServerWeb, and I think doing the following would make the templates more clear

  • Merge StarterWeb-CSharp into RazorPagesWeb
  • Add conditionals based on above option to use different files (if MVC, use MVC files etc)
  • Rename StarterWeb-FSharp to MVCWeb-FSharp

This would make the templates more clear for future contribution. Let me know what you think and include whoever in the convo you need

@mkArtakMSFT
Copy link
Contributor Author

@isaac2004 I would not start on this yet. Given the complexity this would introduce, let's wait for now. Things may change by the time we get there.

@mkArtakMSFT mkArtakMSFT modified the milestones: 3.1.0, 5.0.0 Aug 8, 2019
@mkArtakMSFT
Copy link
Contributor Author

Closing as we don't think this will add much value.

@ghost ghost locked as resolved and limited conversation to collaborators Mar 24, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-mvc Includes: MVC, Actions and Controllers, Localization, CORS, most templates enhancement This issue represents an ask for new feature or an enhancement to an existing one
Projects
None yet
Development

No branches or pull requests

3 participants