DeterministicBuilds icon indicating copy to clipboard operation
DeterministicBuilds copied to clipboard

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

Open seangwright opened this issue 3 years ago • 0 comments

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?

seangwright avatar Sep 08 '21 20:09 seangwright