You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Randomized contents of bootstrap.bundle.js in project template #20030
When creating a new project using the Aspire Starter App project template multiple times, each project ends up with different bootstrap files (bootstrap.bundle.js, bootstrap.esm.js, bootstrap.js, along with their minified and map files) in the dist directory. This is because they contain the literal text "5000", such as here. The default port number is also 5000, which is replaced with a random value before project creation has completed. I suspect the template engine performs a search/replace in all files, replacing all occurrences of "5000" with the randomized port number.
As a result, it becomes harder to spot diffs between projects created using older templates over time.
Expected Behavior
Lines like interval: 5000 in the dist directory remain unchanged.
Steps To Reproduce
Create directories aspire-1 and aspire-2
In both directories, create a new project using the Aspire Starter App project template (using the same project name)
Diff the directories using a compare tool; while changes in launchSettings.json, .http and .csproj files are expected, the dist directories should be identical
Activity
MihuBot commentedon Sep 10, 2026
I'm a bot. Here is a possible related and/or duplicate issue (I may be wrong):
Default$b.intervalinbootstrap.bundle.jsis being set to the port number dotnet/sdk#48811Constrain aspire-starter port replacers to localhost: URLs (microsoft…
Constrain aspire-starter port replacers to localhost: URLs
Constrain aspire-starter port replacers to localhost: URLs (#20110)
chore(deps): Bump the nuget-minor-patch group with 4 updates (#905)
Bump the aspire group with 3 updates (#151)
deps: Bump Aspire.Hosting.AppHost and Scalar.AspNetCore (#96)
chore(deps): Bump the dotnet group with 30 updates (#16)
chore(deps): Bump Aspire.Hosting.AppHost from 13.5.3 to 13.5.4 (#835)
build: Bump Aspire.Hosting.PostgreSQL from 13.5.3 to 13.5.4 (#263)
Bump the aspire group with 1 update (#569)