DeterministicBuilds
DeterministicBuilds copied to clipboard
How should Razor Class Libraries (RCL) be configured to achieve deterministic builds?
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:
I'm not sure how to get a RCL to meet any of the criteria for a 'healthy' package. Is it even possible?