DotNet.ReproducibleBuilds
0.1.26
Prefix Reserved
See the version list below for details.
dotnet add package DotNet.ReproducibleBuilds --version 0.1.26
NuGet\Install-Package DotNet.ReproducibleBuilds -Version 0.1.26
<PackageReference Include="DotNet.ReproducibleBuilds" Version="0.1.26"> <PrivateAssets>all</PrivateAssets> <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets> </PackageReference>
paket add DotNet.ReproducibleBuilds --version 0.1.26
#r "nuget: DotNet.ReproducibleBuilds, 0.1.26"
// Install DotNet.ReproducibleBuilds as a Cake Addin #addin nuget:?package=DotNet.ReproducibleBuilds&version=0.1.26 // Install DotNet.ReproducibleBuilds as a Cake Tool #tool nuget:?package=DotNet.ReproducibleBuilds&version=0.1.26
A package that enables reproducible builds in a single step. 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
=true
EmbedUntrackedSources
=true
DebugType
=embedded
. You can specifyportable
in your project if you prefer, but you'll need to upload that.snupkg
file too.IncludePackageReferencesDuringMarkupCompilation
=true
(enables a fix for WPF)ContinuousIntegrationBuild
=true
on CI systems
It also adds SourceLink dependencies for all repo types (the right one will be used automatically).
For more information on debugging with Source Link is here.
Usage
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="0.1.26" PrivateAssets="All"/>
</ItemGroup>
MSBuild 16.10 is required to generate binaries that can be fully reproduced. You'll need Visual Studio 2019 16.10 and/or .NET 5.0.300 SDK. You'll get a warning if you're using a lower version.
Learn more about Target Frameworks and .NET Standard.
-
- Microsoft.SourceLink.AzureRepos.Git (>= 1.0.0)
- Microsoft.SourceLink.Bitbucket.Git (>= 1.0.0)
- Microsoft.SourceLink.GitHub (>= 1.0.0)
- Microsoft.SourceLink.GitLab (>= 1.0.0)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on DotNet.ReproducibleBuilds:
Package | Downloads |
---|---|
AspireDashboardHelper
A helper library for adding the Aspire Dashboard docker image to your projects. |
GitHub repositories (69)
Showing the top 5 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
|
|
elastic/elasticsearch-net
This strongly-typed, client library enables working with Elasticsearch. It is the official client maintained and supported by Elastic.
|
|
Dotnet-Boxed/Templates
.NET project templates with batteries included, providing the minimum amount of code required to get you going faster.
|
|
oxyplot/oxyplot
A cross-platform plotting library for .NET
|