Skip to content

WPF - Blazor hybrid - staticwebassets.runtime.json content root path problem  #52771

Closed as not planned
@gdar91

Description

@gdar91

Description

When publishing a WPF Blazor Hybrid app (that uses BlazorWebView) to a ClickOnce server, a staticwebassets.runtime.json file is added to the output. The problem is it contains content root paths from a developer machine, which then causes the application to crash, complaining about the path.

Configuration

.NET 7.0.14, on Windows 10 x64.

Regression?

It seems that it is a regression, because in previous versions of .NET 7 and Visual Studio, it didn't use to output the staticwebassets.runtime.json file at all.

If I make the app delete this file during launch, then it solves the problem, but I still consider it a workaround.

Metadata

Metadata

Assignees

No one assigned

    Labels

    ExternalThis is an issue in a component not contained in this repository. It is open for tracking purposes.Needs: Attention 👋This issue needs the attention of a contributor, typically because the OP has provided an update.area-blazorIncludes: Blazor, Razor Components

    Type

    No type

    Projects

    Status

    Done

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions