Skip to content

Commit 36f34b3

Browse files
authored
Add the displayName Property to Project Template Parameters (#40105)
# Add the `displayName` Property to Project Template Parameters Improves display of project template parameters by providing an easily readable parameter name. Currently: ![image](https://user-images.githubusercontent.com/14852843/153301454-dfb5f44b-00b6-45d5-90aa-e8656cc97036.png) After: ![image](https://user-images.githubusercontent.com/14852843/153320880-e897986c-b5fc-4a4b-b9df-28e93e7a3c16.png) ## Description Recent changes which enabled template localization (#38867) omitted the new `displayName` property, which led to VS using the parameter id/name instead. This is non-localized and comes in the form of `camelCase`, `UpperCamelCase` or `kebab-case`. Fixes https://github.com/aspnet/AspNetCore-ManualTests/issues/1154 ## Customer Impact The property id/name is being used instead of a more legible property display name. This can manifest itself in `camelCase`, `UpperCamelCase` or `kebab-case` case like below: ![image](https://user-images.githubusercontent.com/14852843/153301454-dfb5f44b-00b6-45d5-90aa-e8656cc97036.png) ## Regression? - [x] Yes - [ ] No Visual Studio 17 Preview 1. ## Risk - [ ] High - [x] Medium - [ ] Low ## Verification - [x] Manual (required) - [ ] Automated ## Packaging changes reviewed? - [ ] Yes - [ ] No - [x] N/A
1 parent 116addb commit 36f34b3

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+65
-12
lines changed

src/ProjectTemplates/Web.ItemTemplates/content/RazorPage/.template.config/localize/templatestrings.cs.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,6 @@
44
"description": "A Razor page with or without a page model",
55
"symbols/namespace/description": "namespace for the generated code",
66
"symbols/no-pagemodel/description": "create page without a PageModel",
7+
"symbols/no-pagemodel/displayName": "Exclude PageModel",
78
"postActions/openInEditor/description": "Opens Index.cshtml in the editor"
89
}

src/ProjectTemplates/Web.ItemTemplates/content/RazorPage/.template.config/localize/templatestrings.de.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,6 @@
44
"description": "A Razor page with or without a page model",
55
"symbols/namespace/description": "namespace for the generated code",
66
"symbols/no-pagemodel/description": "create page without a PageModel",
7+
"symbols/no-pagemodel/displayName": "Exclude PageModel",
78
"postActions/openInEditor/description": "Opens Index.cshtml in the editor"
89
}

src/ProjectTemplates/Web.ItemTemplates/content/RazorPage/.template.config/localize/templatestrings.en.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,6 @@
44
"description": "A Razor page with or without a page model",
55
"symbols/namespace/description": "namespace for the generated code",
66
"symbols/no-pagemodel/description": "create page without a PageModel",
7+
"symbols/no-pagemodel/displayName": "Exclude PageModel",
78
"postActions/openInEditor/description": "Opens Index.cshtml in the editor"
89
}

src/ProjectTemplates/Web.ItemTemplates/content/RazorPage/.template.config/localize/templatestrings.es.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,6 @@
44
"description": "A Razor page with or without a page model",
55
"symbols/namespace/description": "namespace for the generated code",
66
"symbols/no-pagemodel/description": "create page without a PageModel",
7+
"symbols/no-pagemodel/displayName": "Exclude PageModel",
78
"postActions/openInEditor/description": "Opens Index.cshtml in the editor"
89
}

src/ProjectTemplates/Web.ItemTemplates/content/RazorPage/.template.config/localize/templatestrings.fr.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,6 @@
44
"description": "A Razor page with or without a page model",
55
"symbols/namespace/description": "namespace for the generated code",
66
"symbols/no-pagemodel/description": "create page without a PageModel",
7+
"symbols/no-pagemodel/displayName": "Exclude PageModel",
78
"postActions/openInEditor/description": "Opens Index.cshtml in the editor"
89
}

src/ProjectTemplates/Web.ItemTemplates/content/RazorPage/.template.config/localize/templatestrings.it.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,6 @@
44
"description": "A Razor page with or without a page model",
55
"symbols/namespace/description": "namespace for the generated code",
66
"symbols/no-pagemodel/description": "create page without a PageModel",
7+
"symbols/no-pagemodel/displayName": "Exclude PageModel",
78
"postActions/openInEditor/description": "Opens Index.cshtml in the editor"
89
}

src/ProjectTemplates/Web.ItemTemplates/content/RazorPage/.template.config/localize/templatestrings.ja.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,6 @@
44
"description": "A Razor page with or without a page model",
55
"symbols/namespace/description": "namespace for the generated code",
66
"symbols/no-pagemodel/description": "create page without a PageModel",
7+
"symbols/no-pagemodel/displayName": "Exclude PageModel",
78
"postActions/openInEditor/description": "Opens Index.cshtml in the editor"
89
}

src/ProjectTemplates/Web.ItemTemplates/content/RazorPage/.template.config/localize/templatestrings.ko.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,6 @@
44
"description": "A Razor page with or without a page model",
55
"symbols/namespace/description": "namespace for the generated code",
66
"symbols/no-pagemodel/description": "create page without a PageModel",
7+
"symbols/no-pagemodel/displayName": "Exclude PageModel",
78
"postActions/openInEditor/description": "Opens Index.cshtml in the editor"
89
}

src/ProjectTemplates/Web.ItemTemplates/content/RazorPage/.template.config/localize/templatestrings.pl.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,6 @@
44
"description": "A Razor page with or without a page model",
55
"symbols/namespace/description": "namespace for the generated code",
66
"symbols/no-pagemodel/description": "create page without a PageModel",
7+
"symbols/no-pagemodel/displayName": "Exclude PageModel",
78
"postActions/openInEditor/description": "Opens Index.cshtml in the editor"
89
}

src/ProjectTemplates/Web.ItemTemplates/content/RazorPage/.template.config/localize/templatestrings.pt-BR.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,6 @@
44
"description": "A Razor page with or without a page model",
55
"symbols/namespace/description": "namespace for the generated code",
66
"symbols/no-pagemodel/description": "create page without a PageModel",
7+
"symbols/no-pagemodel/displayName": "Exclude PageModel",
78
"postActions/openInEditor/description": "Opens Index.cshtml in the editor"
89
}

0 commit comments

Comments
 (0)