Skip to content

Electron.NET Core 0.3.1 fail to compile base Blazor Web project #993

@Denny09310

Description

@Denny09310

Description

After upgrading Electron.NET Core from 0.3.0 to 0.3.1, the build fails with an exception related to missing metadata for generated static assets.

Environment

  • Electron.NET Core: 0.3.1
  • .NET SDK: 10
  • Node.js: 24.12.0
  • Target Runtime: win-x64

Error Message

No metadata 'SourceId' was present for item 'Components\Layout\ReconnectModal.razor.js' and no default value was provided.

I have observed the same issue in another project, where the error referenced different generated assets, such as:

  • *.razor.js
  • app.css

Expected Behavior

The project should build successfully after upgrading Electron.NET Core from 0.3.0 to 0.3.1.

Actual Behavior

The build fails with a SourceId metadata exception related to generated static web assets.

Steps to Reproduce

  1. Create a new Blazor Web project.
  2. Add Electron.NET.
  3. Build the project.

Additional Notes

I've also saw that when re-opening the project the file affected by this exception can change, for example now it's "Components\Layout\MainLayout.razor.rz.scp.css", no idea how it calculates this static assets

electron-sample.zip

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions