Skip to content

Commit d47c93e

Browse files
committed
Wire up nuspec-based pack to deterministic mode
When building nuspec-based packages, the deterministic-mode configuration is not flowed correctly to the PackageBuilder class (which is initialized using this PackArgs object). Seems like this was missed from the initial deterministic support in #2989. This commit is a no-op until deterministic mode is enabled and NuGet/Home#8601 is fixed.
1 parent 8719c86 commit d47c93e

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/NuGet.Core/NuGet.Build.Tasks.Pack/PackTaskLogic.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ public PackArgs GetPackArgs(IPackTaskRequest<IMSBuildItem> request)
4242
BasePath = request.NuspecBasePath,
4343
NoPackageAnalysis = request.NoPackageAnalysis,
4444
NoDefaultExcludes = request.NoDefaultExcludes,
45+
Deterministic = request.Deterministic,
4546
WarningProperties = WarningProperties.GetWarningProperties(request.TreatWarningsAsErrors, request.WarningsAsErrors, request.NoWarn, request.WarningsNotAsErrors),
4647
PackTargetArgs = new MSBuildPackTargetArgs()
4748
};

0 commit comments

Comments
 (0)