Ensure repeated hyphens are replaced with single hyphens in new projects' localhost host name prefixes#65027
Merged
DamianEdwards merged 1 commit intomainfrom Jan 13, 2026
Conversation
…ts for DNS-compliant hostnames Related to #64978
BrennanConroy
approved these changes
Jan 12, 2026
This was referenced Jan 13, 2026
Open
wtgodbe
pushed a commit
that referenced
this pull request
Jan 14, 2026
…stnames in launch profiles (#65048) * Fix DNS-invalid hostnames with underscores in dotnet new templates (#64988) * Initial plan * Add DNS-safe hostname forms and symbols to templates Co-authored-by: DamianEdwards <249088+DamianEdwards@users.noreply.github.com> * Add trimming of leading/trailing hyphens for DNS-safe hostnames Co-authored-by: DamianEdwards <249088+DamianEdwards@users.noreply.github.com> * Use distinct placeholder LocalhostTldHostNamePrefix for hostname replacement Co-authored-by: DamianEdwards <249088+DamianEdwards@users.noreply.github.com> * Add tests for DNS-compliant hostname generation with --localhost-tld Co-authored-by: DamianEdwards <249088+DamianEdwards@users.noreply.github.com> * Add tests for DNS-compliant hostname generation in Blazor templates Co-authored-by: DamianEdwards <249088+DamianEdwards@users.noreply.github.com> * Move VerifyDnsCompliantHostname to shared Project class Co-authored-by: DamianEdwards <249088+DamianEdwards@users.noreply.github.com> * Fix -n parameter conflict and add tests with numbers in project names Co-authored-by: DamianEdwards <249088+DamianEdwards@users.noreply.github.com> * Refactor DNS hostname tests to use Theory with InlineData Co-authored-by: DamianEdwards <249088+DamianEdwards@users.noreply.github.com> * Fix razorcomponent item test --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: DamianEdwards <249088+DamianEdwards@users.noreply.github.com> Co-authored-by: Damian Edwards <damian@damianedwards.com> * Add replaceRepeatedHyphens step to template processing and update tests for DNS-compliant hostnames (#65027) Related to #64978 --------- Co-authored-by: Copilot <198982749+Copilot@users.noreply.github.com> Co-authored-by: DamianEdwards <249088+DamianEdwards@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Ensure repeated hyphens are replaced with single hyphens in new projects' localhost host name prefixes
Description
Ensures that there are no repeated hyphens in the host name generated for new projects that opt-in to the
*.dev.localhosthost name.Related to #64978