-
Notifications
You must be signed in to change notification settings - Fork 10.3k
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
Open Index.razor
by default in blazorserver
, blazorwasm
templates
#42330
Comments
@phenning I'm not seeing where the file path is actually specified (I'm assuming the description isn't parsed for the path, is it?): Lines 99 to 107 in 5026aef
|
args.files is the zero based index into the primaryOutputs object array "files": "1" Line 81 in 5026aef
|
Is Index.razor what we want to open vs other things like Program.cs? Could we open both? |
Index.razor was just the first one to come to mind. Yeah we can definitely do program as well. |
Now that I looked at the other web templates, I noticed none of the others are opening any files. Maybe we should do the same here. I just asked the question in case the team wanted to consider for this template. We might want to err on the side of consistency though |
Razor class library does this.
Basically you want to have the file you want to open as a conditional secondary primaryOutput for non-CLI hosts, then add a post action.
aspnetcore/src/ProjectTemplates/Web.ProjectTemplates/content/RazorClassLibrary-CSharp/.template.config/template.json
Line 99 in 5026aef
Originally posted by @phenning in #42215 (comment)
The text was updated successfully, but these errors were encountered: