Skip to content

Fix MVC and Razor Pages scoped CSS styling for project names with spaces #62680

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

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Add StyleBundleName generator to MVC and Razor Pages templates to fix…
… space handling

Co-authored-by: javiercn <6995051+javiercn@users.noreply.github.com>
  • Loading branch information
Copilot and javiercn committed Jul 11, 2025
commit 0f08105e4f13103df423c437acaad9fa8efe54d9
Original file line number Diff line number Diff line change
Expand Up @@ -321,6 +321,19 @@
},
"replaces": "44300"
},
"StyleBundleName":{
"type": "generated",
"generator": "regex",
"replaces": "StyleBundleName",
"parameters": {
"source": "name",
"steps": [
{
"regex": " ",
"replacement": "_"
}]
}
},
"OrganizationalAuth": {
"type": "computed",
"value": "(auth == \"SingleOrg\" || auth == \"MultiOrg\")"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<script type="importmap"></script>
<link rel="stylesheet" href="~/lib/bootstrap/dist/css/bootstrap.min.css" />
<link rel="stylesheet" href="~/css/site.css" asp-append-version="true" />
<link rel="stylesheet" href="~/Company.WebApplication1.styles.css" asp-append-version="true" />
<link rel="stylesheet" href="~/StyleBundleName.styles.css" asp-append-version="true" />
</head>
<body>
<header>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -311,6 +311,19 @@
},
"replaces": "44300"
},
"StyleBundleName":{
"type": "generated",
"generator": "regex",
"replaces": "StyleBundleName",
"parameters": {
"source": "name",
"steps": [
{
"regex": " ",
"replacement": "_"
}]
}
},
"OrganizationalAuth": {
"type": "computed",
"value": "(auth == \"SingleOrg\" || auth == \"MultiOrg\")"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<script type="importmap"></script>
<link rel="stylesheet" href="~/lib/bootstrap/dist/css/bootstrap.min.css" />
<link rel="stylesheet" href="~/css/site.css" asp-append-version="true" />
<link rel="stylesheet" href="~/Company.WebApplication1.styles.css" asp-append-version="true" />
<link rel="stylesheet" href="~/StyleBundleName.styles.css" asp-append-version="true" />
</head>
<body>
<header>
Expand Down
Loading
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy