![]() |
VOOZH | about |
dotnet add package DotNet.ReproducibleBuilds --version 2.0.5
NuGet\Install-Package DotNet.ReproducibleBuilds -Version 2.0.5
<PackageReference Include="DotNet.ReproducibleBuilds" Version="2.0.5">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>
<PackageVersion Include="DotNet.ReproducibleBuilds" Version="2.0.5" />Directory.Packages.props
<PackageReference Include="DotNet.ReproducibleBuilds"> <PrivateAssets>all</PrivateAssets> <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets> </PackageReference>Project file
paket add DotNet.ReproducibleBuilds --version 2.0.5
#r "nuget: DotNet.ReproducibleBuilds, 2.0.5"
#:package DotNet.ReproducibleBuilds@2.0.5
#addin nuget:?package=DotNet.ReproducibleBuilds&version=2.0.5Install as a Cake Addin
#tool nuget:?package=DotNet.ReproducibleBuilds&version=2.0.5Install as a Cake Tool
π .NET Foundation
π Build Status
This repo is a collection of best practices for build reproducibility with MSBuild.
It provides documentation and NuGet packages to simplify build configuration and isolate builds from developer or workstation-specific settings.
π NuGet Version
π NuGet Downloads
It's highly recommended that all projects enable these settings, either via adding this package or manually as described here: https://devblogs.microsoft.com/dotnet/producing-packages-with-source-link/
This package sets the following properties:
PublishRepositoryUrl = trueDebugType = embedded. You can specify portable in your project if you prefer, but you'll need to upload that .snupkg file too.ContinuousIntegrationBuild = true on CI systemsMore information on PublishRepositoryUrl and debugging with Source Link is here.
Add the following to your Directory.Build.props file so all projects in your solution have the package added -- use the latest package version.
<ItemGroup>
<PackageReference Include="DotNet.ReproducibleBuilds" Version="2.0.2" PrivateAssets="All"/>
</ItemGroup>
MSBuild 17.8 is required to generate binaries that can be fully reproduced. You'll need Visual Studio 2022 17.8 and/or .NET 8.0.100 SDK. You'll get a warning if you're using a lower version.
Prerelease packages are available on the following NuGet feed:
https://pkgs.dev.azure.com/dotnet/Projects/_packaging/ReproducibleBuilds/nuget/v3/index.json
π NuGet Version
π NuGet Downloads
It's highly recommended that all projects enable these settings, either via adding this package or manually, as described in .
This package configures a variety of properties and item groups to prevent your build from unintentionally depending on other installed software that's not described by your repo. All build dependencies should come from either the MSBuild SDK you've chosen, or from nuget packages restored from your package feed.
If you check out the same commit with the same SDK version and same nuget feed, you should get the same build result.
Add the following to the top of your projects or to Directory.Build.props:
<Sdk Name="DotNet.ReproducibleBuilds.Isolated" Version="2.0.2" />
See for information on contributing to this project.
This project has adopted the code of conduct defined by the Contributor Covenant to clarify expected behavior in our community. For more information, see the .NET Foundation Code of Conduct.
This project is licensed with the .
DotNet.ReproducibleBuilds is a .NET Foundation project.
Learn more about Target Frameworks and .NET Standard.
This package has no dependencies.
Showing the top 3 NuGet packages that depend on DotNet.ReproducibleBuilds:
| Package | Downloads |
|---|---|
|
Altemiq.DotNet.CodingStandard
A package to configure .NET coding style and static analysis |
|
|
AspireDashboardHelper
A helper library for adding the Aspire Dashboard docker image to your projects. |
|
|
KappaDuck.Quack
Quack! is a modern, simple and fast multimedia framework built on top of SDL3 and its extensions (SDL_image, SDL_mixer, SDL_ttf). It targets .NET 10+ desktop and web apps, providing a clean and flexible API that hides the complexity of SDL. |
Showing the top 20 popular GitHub repositories that depend on DotNet.ReproducibleBuilds:
| Repository | Stars |
|---|---|
|
dotnet/Silk.NET
The high-speed OpenGL, OpenCL, OpenAL, OpenXR, GLFW, SDL, Vulkan, Assimp, WebGPU, and DirectX bindings library your mother warned you about.
|
|
|
morelinq/MoreLINQ
Extensions to LINQ to Objects
|
|
|
CommunityToolkit/dotnet
.NET Community Toolkit is a collection of helpers and APIs that work for all .NET developers and are agnostic of any specific UI platform. The toolkit is maintained and published by Microsoft, and part of the .NET Foundation.
|
|
|
elastic/elasticsearch-net
This strongly-typed, client library enables working with Elasticsearch. It is the official client maintained and supported by Elastic.
|
|
|
martinothamar/Mediator
A high performance implementation of Mediator pattern in .NET using source generators.
|
|
|
oxyplot/oxyplot
A cross-platform plotting library for .NET
|
|
|
Dotnet-Boxed/Templates
.NET project templates with batteries included, providing the minimum amount of code required to get you going faster.
|
|
|
JasperFx/marten
.NET Transactional Document DB and Event Store on PostgreSQL
|
|
|
shouldly/shouldly
Should testing for .NETβthe way assertions should be!
|
|
|
linq2db/linq2db
Linq to database provider.
|
|
|
microsoft/dotnet-podcasts
.NET reference application shown at .NET Conf featuring ASP.NET Core, Blazor, .NET MAUI, Microservices, Orleans, Playwright, and more!
|
|
|
Sergio0694/PolySharp
PolySharp provides generated, source-only polyfills for C# language features, to easily use all runtime-agnostic features downlevel. Add a reference, set your C# version to latest and have fun! π
|
|
|
stryker-mutator/stryker-net
Mutation testing for .NET core and .NET framework!
|
|
|
goatcorp/Dalamud
FFXIV plugin framework and API
|
|
|
microsoft/automatic-graph-layout
A set of tools for graph layout and viewing
|
|
|
SteveDunn/Vogen
A semi-opinionated library which is a source generator and a code analyser. It Source generates Value Objects
|
|
|
HaveIBeenPwned/PwnedPasswordsDownloader
A tool to download all Pwned Passwords hash ranges and save them offline so they can be used without a dependency on the k-anonymity API
|
|
|
andrewlock/NetEscapades.EnumGenerators
A source generator for generating fast "reflection" methods for enums
|
|
|
DigDes/SoapCore
SOAP extension for ASP.NET Core
|
|
|
tryAGI/LangChain
C# implementation of LangChain. We try to be as close to the original as possible in terms of abstractions, but are open to new entities.
|
# Changelog
## [1.2.39]
### Added
- [Add codes and help links to existing warnings](https://github.com/dotnet/reproducible-builds/pull/68) - thanks @MattKotsenas!
## [1.2.25]
### Added
- [Align RepositoryBranch logic with .NET 9](https://github.com/dotnet/reproducible-builds/pull/50) - thanks @MattKotsenas!
### Removed
- [Bump required SDK to 8+ and remove fixed issues](https://github.com/dotnet/reproducible-builds/pull/52) - thanks @MattKotsenas!
## [1.2.4]
### Added
- [Set the `DisableImplicitLibraryPacks` property to `true` to prevent using packages from the .NET SDK's built-in package sources.](https://github.com/dotnet/reproducible-builds/pull/21) - thanks @cmeeren!
- [Populate the `RepositoryBranch` property if other Repository Metadata has been requested to be made public.](https://github.com/dotnet/reproducible-builds/pull/27) - thanks @kzu!
### Removed
- [No longer include the .NET Framework reference assembly packages, because the .NET SDK does this now.](https://github.com/dotnet/reproducible-builds/pull/33) - thanks @MattKotsenas!
## [1.2.0]
### Added
- [Support for transitive package references](https://github.com/dotnet/reproducible-builds/pull/16) - thanks @meziantou!
- [Add RepositoryBranch package metadata when available in the build environment](https://github.com/dotnet/reproducible-builds/pull/27) - thanks @kzu!
### Removed
- [Remove the automatically provided .NET Framework reference assembly PackageReference, since the SDK provides this already](https://github.com/dotnet/reproducible-builds/pull/33) - thanks @MattKotsenas!