From d40f2cb85214759669a9253c2102ccff4ec327c2 Mon Sep 17 00:00:00 2001 From: Taloth Saldono Date: Wed, 21 Aug 2019 20:18:01 +0200 Subject: [PATCH] Fixed assembly configuration/branch attribute generation. --- build.sh | 1 + src/Directory.Build.props | 10 +++++++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/build.sh b/build.sh index 4c675586a..95fa27c44 100755 --- a/build.sh +++ b/build.sh @@ -47,6 +47,7 @@ UpdateVersionNumber() BUILD_NUMBER=$verMajorMinorRevision.$verBuild echo "##teamcity[buildNumber '$BUILD_NUMBER']" sed -i "s/[0-9.*]\+<\/AssemblyVersion>/$BUILD_NUMBER<\/AssemblyVersion>/g" ./src/Directory.Build.props + sed -i "s/[\$()A-Za-z-]\+<\/AssemblyConfiguration>/${BRANCH:-dev}<\/AssemblyConfiguration>/g" ./src/Directory.Build.props fi } diff --git a/src/Directory.Build.props b/src/Directory.Build.props index 11063a6f8..3a33daa76 100644 --- a/src/Directory.Build.props +++ b/src/Directory.Build.props @@ -48,16 +48,24 @@ Sonarr sonarr.tv - Copyright 2014-$([System.DateTime]::Now.ToString('yyyy')) sonarr.tv (GNU General Public v3) + Copyright 2010-$([System.DateTime]::Now.ToString('yyyy')) sonarr.tv (GNU General Public v3) 10.0.0.* + $(Configuration)-dev false false + false False + + + + <_Parameter1>$(AssemblyConfiguration) + +