From eca7d11ced5774e08ff4c11bafd5fe0075455795 Mon Sep 17 00:00:00 2001 From: Michael Krisper <michael.krisper@tugraz.at> Date: Thu, 10 Feb 2022 11:41:35 +0100 Subject: [PATCH] Directory Props and Build Targets: Added deterministic build (without timestamp), and added the framework name to the deploy-zip file. --- Directory.Build.props | 1 + Directory.Build.targets | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Directory.Build.props b/Directory.Build.props index 586bcd0cf3..ec98927205 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -18,6 +18,7 @@ <Company>European Union</Company> <Copyright>Copyright © 2012-$([System.DateTime]::UtcNow.Year)</Copyright> <PlatformTarget>AnyCPU</PlatformTarget> + <Deterministic>true</Deterministic> </PropertyGroup> <PropertyGroup> diff --git a/Directory.Build.targets b/Directory.Build.targets index 00be344f21..bdab436d68 100644 --- a/Directory.Build.targets +++ b/Directory.Build.targets @@ -124,7 +124,7 @@ <CurrentDate>$([System.DateTime]::Now.ToString(yyy_MM_dd))</CurrentDate> </PropertyGroup> <Message Text="Creating ZIP, CurrentDate: $(CurrentDate)"/> - <Zip OutputFilename="$(SolutionDir)$(CurrentDate)-VECTO-%(VectoAssemblyIdentities.Version).zip" Files="@(ZipFiles)" SourcePath="$(OutputPath)" DestinationPath="$(CurrentDate)-VECTO-%(VectoAssemblyIdentities.Version)\"/> + <Zip OutputFilename="$(SolutionDir)$(CurrentDate)-VECTO-%(VectoAssemblyIdentities.Version)-$(TargetFramework).zip" Files="@(ZipFiles)" SourcePath="$(OutputPath)" DestinationPath="$(CurrentDate)-VECTO-%(VectoAssemblyIdentities.Version)\"/> </Target> <Target Name="CleanVectoDeploy" AfterTargets="AfterClean"> -- GitLab