Skip to content

Reproducible builds with Razor Class Library in .NET 6 RC1 #37182

@meziantou

Description

@meziantou

Describe the bug

I try to update a project to .NET 6 RC1. The project is a Razor Class Library that contains Blazor components.
I use the DotNet.ReproducibleBuilds@0.1.66 package to set the MSBuild properties for reproducible builds. It works great in .NET 5. However, in .NET 6 RC1, the path to the razor files in the pdb are local paths (C:\...) instead of a deterministic path (/_/...).

  • .NET 5:

    image

  • .NET 6:

    image

To Reproduce

Is there a new property to set in the csproj file to handle razor files in .NET 6?

Metadata

Metadata

Assignees

Labels

DoneThis issue has been fixed

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions