From 532e4597321a7d39dc16332084cd77811d44eeab Mon Sep 17 00:00:00 2001 From: Gary Ewan Park Date: Fri, 26 Feb 2021 20:41:59 +0000 Subject: [PATCH] (GH-55) Enable deterministic build --- src/Cake.Json.Tests/Cake.Json.Tests.csproj | 6 +++++- src/Cake.Json/Cake.Json.csproj | 6 ++++++ src/Directory.Build.props | 11 ----------- src/Directory.Build.targets | 15 ++++++++++----- 4 files changed, 21 insertions(+), 17 deletions(-) delete mode 100644 src/Directory.Build.props diff --git a/src/Cake.Json.Tests/Cake.Json.Tests.csproj b/src/Cake.Json.Tests/Cake.Json.Tests.csproj index a2e57f4..2528ce9 100644 --- a/src/Cake.Json.Tests/Cake.Json.Tests.csproj +++ b/src/Cake.Json.Tests/Cake.Json.Tests.csproj @@ -8,12 +8,16 @@ + + runtime; build; native; contentfiles; analyzers; buildtransitive + all + - + all runtime; build; native; contentfiles; analyzers; buildtransitive diff --git a/src/Cake.Json/Cake.Json.csproj b/src/Cake.Json/Cake.Json.csproj index 28545c8..4ea28e5 100644 --- a/src/Cake.Json/Cake.Json.csproj +++ b/src/Cake.Json/Cake.Json.csproj @@ -3,6 +3,8 @@ netstandard2.0;net46 true + true + snupkg @@ -23,6 +25,10 @@ + + runtime; build; native; contentfiles; analyzers; buildtransitive + all + all diff --git a/src/Directory.Build.props b/src/Directory.Build.props deleted file mode 100644 index 926d9fc..0000000 --- a/src/Directory.Build.props +++ /dev/null @@ -1,11 +0,0 @@ - - - $(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb - true - true - - - - - - diff --git a/src/Directory.Build.targets b/src/Directory.Build.targets index 5cd0b11..86e3c03 100644 --- a/src/Directory.Build.targets +++ b/src/Directory.Build.targets @@ -1,8 +1,13 @@ + - + + $(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb + true + true $([System.IO.Path]::Combine('$(IntermediateOutputPath)','$(TargetFrameworkMoniker).AssemblyAttributes$(DefaultLanguageSourceExtension)')) @@ -13,11 +18,11 @@ https://github.com/dotnet/sourcelink/issues/572 --> + DependsOnTargets="InitializeSourceRootMappedPaths" + Returns="@(_LocalTopLevelSourceRoot)" + Condition="'$(DeterministicSourcePaths)' == 'true'"> - <_LocalTopLevelSourceRoot Include="@(SourceRoot)" Condition="'%(SourceRoot.NestedRoot)' == ''"/> + <_LocalTopLevelSourceRoot Include="@(SourceRoot)" Condition="'%(SourceRoot.NestedRoot)' == ''"/>