8000 Blazor project creation: Default$b.interval in bootstrap.bundle.js is being set to the port number · Issue #48810 · dotnet/sdk · GitHub < 8000 meta name="browser-errors-url" content="https://api.github.com/_private/browser/errors">
[go: up one dir, main page]

Skip to content
Blazor project creation: Default$b.interval in bootstrap.bundle.js is being set to the port number #48810
@rough-street

Description

@rough-street

Describe the bug

When I create a new blazorwasm standalone app and look at the generated files, I see that the value of Default$b.interval in projectname/wwwroot/lib/bootstrap/dist/js/bootstrap.bundle.js:1131 has been set to the same value as the port in the url set in projectname/Properties/launchSettings.json:9 at "profiles"->"http"->"applicationUrl"

This is not just a coincedence - when another project is created and is automatically given a different port number in launchSettings.json, again Default$b.interval is assigned this new port number.

To Reproduce

  • Run dotnet new blazorwasm -o projectname on Linux (I haven't tried Windows).
  • Examine the above files and see that values match.
  • Delete the project and recreate.
  • Note that the port number is now different (fine) and that the Default$b.interval now is assigned the new port number.

Exceptions (if any)

None

Further technical details

Output of dotnet --info

.NET SDK:
Version: 9.0.104
Commit: 7931ad4860
Workload version: 9.0.100-manifests.dc2cb94f
MSBuild version: 17.12.27+7931ad486

Runtime Environment:
OS Name: ubuntu
OS Version: 22.04
OS Platform: Linux
RID: ubuntu.22.04-x64
Base Path: /usr/lib/dotnet/sdk/9.0.104/

.NET workloads installed:
[wasm-tools]
Installation Source: SDK 9.0.100
Manifest Version: 9.0.3/9.0.100
Manifest Path: /usr/lib/dotnet/sdk-manifests/9.0.100/microsoft.net.workload.mono.toolchain.current/9.0.3/WorkloadManifest.json
Install Type: FileBased

Configured to use loose manifests when installing new manifests.

Host:
Version: 9.0.3
Architecture: x64
Commit: 7931ad4860

.NET SDKs installed:
8.0.115 [/usr/lib/dotnet/sdk]
9.0.104 [/usr/lib/dotnet/sdk]

.NET runtimes installed:
Microsoft.AspNetCore.App 8.0.15 [/usr/lib/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 9.0.3 [/usr/lib/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.NETCore.App 8.0.15 [/usr/lib/dotnet/shared/Microsoft.NETCore.App]
Microsoft.NETCore.App 9.0.3 [/usr/lib/dotnet/shared/Microsoft.NETCore.App]

Other architectures found:
None

Environment variables:
Not set

global.json file:
Not found

Learn more:
https://aka.ms/dotnet/info

Download .NET:
https://aka.ms/dotnet/download

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0