6
6
var target = Argument ( "target" , "Default" ) ;
7
7
var configuration = Argument ( "configuration" , "Release" ) ;
8
8
var version = Argument ( "build_version" , "1.0.0.0" ) ;
9
+ var releaseCandidate = Argument ( "release_candidate" , "0" ) ;
9
10
10
11
Information ( "target: {0}" , target ) ;
11
12
Information ( "configuration: {0}" , configuration ) ;
12
13
Information ( "build_version: {0}" , version ) ;
14
+ Information ( "release_candidate: {0}" , releaseCandidate ) ;
13
15
14
16
//////////////////////////////////////////////////////////////////////
15
17
// PREPARATION
@@ -135,7 +137,12 @@ Task ("BuildSqlServerPackages")
135
137
} ;
136
138
var projectPath = sourceDir . Path + "/ivaldez.SqlBulkLoader/ivaldez.Sql.SqlBulkLoader.csproj" ;
137
139
138
- XmlPoke ( projectPath , "/Project/PropertyGroup/Version" , version ) ;
140
+ var package_version = version ;
141
+ if ( releaseCandidate != "0" ) {
142
+ package_version = package_version + "-rc" + releaseCandidate ;
143
+ }
144
+
145
+ XmlPoke ( projectPath , "/Project/PropertyGroup/Version" , package_version ) ;
139
146
XmlPoke ( projectPath , "/Project/PropertyGroup/AssemblyVersion" , version ) ;
140
147
141
148
DotNetCorePack ( projectPath , settings ) ;
@@ -152,8 +159,13 @@ Task ("BuildPostgrePackages")
152
159
IncludeSymbols = true
153
160
} ;
154
161
var projectPath = sourceDir . Path + "/ivaldez.SqlBulkLoader.PostgreSql/ivaldez.SqlBulkLoader.PostgreSql.csproj" ;
162
+
163
+ var package_version = version ;
164
+ if ( releaseCandidate != "0" ) {
165
+ package_version = package_version + "-rc" + releaseCandidate ;
166
+ }
155
167
156
- XmlPoke ( projectPath , "/Project/PropertyGroup/Version" , version ) ;
168
+ XmlPoke ( projectPath , "/Project/PropertyGroup/Version" , package_version ) ;
157
169
XmlPoke ( projectPath , "/Project/PropertyGroup/AssemblyVersion" , version ) ;
158
170
159
171
DotNetCorePack ( projectPath , settings ) ;
0 commit comments