@@ -16,6 +16,7 @@ using System.Text.RegularExpressions;
16
16
//////////////////////////////////////////////////////////////////////
17
17
18
18
var target = Argument( "target", " Default") ;
19
+ var configuration = Argument( "configuration" , "Release" ) ;
19
20
20
21
//////////////////////////////////////////////////////////////////////
21
22
// VERSIONS
@@ -35,7 +36,7 @@ var toolsDir = buildDir + "/tools";
35
36
var binDir = baseDir + "/bin" ;
36
37
var nupkgDir = binDir + "/nupkg" ;
37
38
38
- var taefBinDir = baseDir + "/UITests/UITests.Tests.TAEF/bin/Release /netcoreapp3.1/win10-x86" ;
39
+ var taefBinDir = baseDir + $ "/UITests/UITests.Tests.TAEF/bin/{ configuration } /netcoreapp3.1/win10-x86";
39
40
40
41
var styler = toolsDir + "/XamlStyler.Console/tools/xstyler.exe" ;
41
42
var stylerFile = baseDir + "/settings.xamlstyler" ;
@@ -151,7 +152,7 @@ Task("BuildProjects")
151
152
{
152
153
MaxCpuCount = 0
153
154
}
154
- . SetConfiguration ( "Release" )
155
+ . SetConfiguration ( configuration )
155
156
. WithTarget ( "Restore" ) ;
156
157
157
158
MSBuild ( Solution , buildSettings ) ;
@@ -163,7 +164,7 @@ Task("BuildProjects")
163
164
{
164
165
MaxCpuCount = 0
165
166
}
166
- . SetConfiguration ( "Release" )
167
+ . SetConfiguration ( configuration )
167
168
. WithTarget ( "Build" )
168
169
. WithProperty ( "GenerateLibraryLayout" , "true" ) ;
169
170
@@ -215,7 +216,7 @@ Task("Package")
215
216
{
216
217
MaxCpuCount = 0
217
218
}
218
- . SetConfiguration ( "Release" )
219
+ . SetConfiguration ( configuration )
219
220
. WithTarget ( "Pack" )
220
221
. WithProperty ( "GenerateLibraryLayout" , "true" )
221
222
. WithProperty ( "PackageOutputPath" , nupkgDir ) ;
@@ -253,13 +254,13 @@ Task("Test")
253
254
ArgumentCustomization = arg => arg . Append ( "/logger:trx;LogFileName=VsTestResultsUwp.trx /framework:FrameworkUap10" ) ,
254
255
} ;
255
256
256
- VSTest ( baseDir + "/**/Release /**/UnitTests.*.appxrecipe" , testSettings ) ;
257
+ VSTest ( baseDir + $ "/**/{ configuration } /**/UnitTests.*.appxrecipe", testSettings ) ;
257
258
} ) . DoesForEach ( GetFiles ( baseDir + "/**/UnitTests.*NetCore.csproj" ) , ( file ) =>
258
259
{
259
260
Information ( "\n Running NetCore Unit Tests" ) ;
260
261
var testSettings = new DotNetCoreTestSettings
261
262
{
262
- Configuration = "Release" ,
263
+ Configuration = configuration ,
263
264
NoBuild = true ,
264
265
Loggers = new [ ] { "trx;LogFilePrefix=VsTestResults" } ,
265
266
Verbosity = DotNetCoreVerbosity . Normal ,
@@ -306,7 +307,7 @@ Task("MSTestUITest")
306
307
307
308
var testSettings = new DotNetCoreTestSettings
308
309
{
309
- Configuration = "Release" ,
310
+ Configuration = configuration ,
310
311
NoBuild = true ,
311
312
Loggers = new [ ] { "trx;LogFilePrefix=VsTestResults" } ,
312
313
Verbosity = DotNetCoreVerbosity . Normal
0 commit comments