Skip to content

[Bug] Enable deterministic builds for NuGet packages #1308

Closed

Description

@jennyf19

Open the nuget package with NugetPackageExplorer
Under Health it can be observed that deterministic (dll/exe) is flagged for an error.

The solution is that the ContinuousIntegrationBuild MSBuild property has to be set to true when built on CI. In practice that means something like this in your directory props/targets file.

  <PropertyGroup Condition="'$(TF_BUILD)' == 'true'">
    <ContinuousIntegrationBuild>true</ContinuousIntegrationBuild>
  </PropertyGroup>

Reference

Activity

  1. added this to the 1.15 milestone on Jul 10, 2021
  2. changed the title [-][Bug] Enable deterministic builds[/-] [+][Bug] Enable deterministic builds for NuGet packages[/+] on Jul 15, 2021
  3. jennyf19 commented on Jul 15, 2021

    @jennyf19
    CollaboratorAuthor

    Included in 1.14.1 release

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions