Skip to content

How should Razor Class Libraries (RCL) be configured to achieve deterministic builds? #11

@seangwright

Description

@seangwright

I have a reproduction of this issue with a vanilla .NET 5.0 Razor Class Library, created from the CLI template and using the latest version of the .NET 5 CLI.

It has SourceLink added to the project.

It is embedding the PDBs because I use Azure DevOps Artifacts which doesn't support .snupkg

https://github.com/seangwright/razor-class-lib-deterministic-build

  • Clone the repo
  • Run the commands in the README
    • dotnet build /p:ContinuousIntegrationBuild=true -c Release
    • dotnet pack --no-restore -o ./temp --no-build -c Release

Here's what NuGet Package Explorer tells me:

Screenshot 2021-09-08 164730

I'm not sure how to get a RCL to meet any of the criteria for a 'healthy' package. Is it even possible?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions