The Wayback Machine - https://web.archive.org/web/20220210030120/https://github.com/dotnet/aspnetcore/pull/40105
Skip to content
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

Add the displayName Property to Project Template Parameters #40105

Open
wants to merge 6 commits into
base: release/7.0-preview1
Choose a base branch
from

Conversation

@TanayParikh
Copy link
Member

@TanayParikh TanayParikh commented Feb 9, 2022

Add the displayName Property to Project Template Parameters

Improves display of project template parameters by providing an easily readable parameter name.

Currently:
image

After:
image

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 aspnet/AspNetCore-ManualTests#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

Regression?

  • Yes
  • No

Visual Studio 17 Preview 1.

Risk

  • High
  • Medium
  • Low

Verification

  • Manual (required)
  • Automated

Packaging changes reviewed?

  • Yes
  • No
  • N/A
@TanayParikh TanayParikh changed the title Add Template displayNames Add the displayName Property to Project Template Parameters Feb 9, 2022
@mkArtakMSFT mkArtakMSFT added this to the 7.0-preview1 milestone Feb 9, 2022
Copy link
Contributor

@phenning phenning left a comment

See comments inline, one additional thing - now would be a good time to also remove all the strings.json files and the locale specific folders in the .template.config folder. Only the localize folder and the files it contains should remain.

We can do this in NET 7 because this new localization support has been shipping since 17.0 and NET 7 and later will not be supported in versions prior to Dev17, just like NET 6 templates are not supported in earlier versions as well.

@TanayParikh TanayParikh requested a review from phenning Feb 10, 2022
Copy link
Contributor

@phenning phenning left a comment

Looks good

@TanayParikh
Copy link
Member Author

@TanayParikh TanayParikh commented Feb 10, 2022

image

The WebAPI override also working as expected.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

3 participants