@@ -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 /net5.0-windows10.0.19041/win10-x86" ;
39
+ var taefBinDir = baseDir + $ "/UITests/UITests.Tests.TAEF/bin/{ configuration } /net5.0-windows10.0.19041/win10-x86";
39
40
40
41
var styler = toolsDir + "/XamlStyler.Console/tools/xstyler.exe" ;
41
42
var stylerFile = baseDir + "/settings.xamlstyler" ;
@@ -167,7 +168,7 @@ Task("BuildProjects")
167
168
{
168
169
MaxCpuCount = 0
169
170
}
170
- . SetConfiguration ( "Release" )
171
+ . SetConfiguration ( configuration )
171
172
. WithTarget ( "Restore" ) ;
172
173
173
174
UpdateToolsPath ( buildSettings ) ;
@@ -181,7 +182,7 @@ Task("BuildProjects")
181
182
{
182
183
MaxCpuCount = 0
183
184
}
184
- . SetConfiguration ( "Release" )
185
+ . SetConfiguration ( configuration )
185
186
. EnableBinaryLogger ( )
186
187
. WithTarget ( "Build" ) ;
187
188
@@ -235,7 +236,7 @@ Task("Package")
235
236
{
236
237
MaxCpuCount = 0
237
238
}
238
- . SetConfiguration ( "Release" )
239
+ . SetConfiguration ( configuration )
239
240
. WithTarget ( "Pack" )
240
241
. WithProperty ( "PackageOutputPath" , nupkgDir ) ;
241
242
@@ -274,13 +275,13 @@ Task("Test")
274
275
ArgumentCustomization = arg => arg . Append ( "/logger:trx;LogFileName=VsTestResultsUwp.trx /framework:FrameworkUap10" ) ,
275
276
} ;
276
277
277
- VSTest ( baseDir + "/**/Release /**/UnitTests.*.appxrecipe" , testSettings ) ;
278
+ VSTest ( baseDir + $ "/**/{ configuration } /**/UnitTests.*.appxrecipe", testSettings ) ;
278
279
} ) . DoesForEach ( GetFiles ( baseDir + "/**/UnitTests.*NetCore.csproj" ) , ( file ) =>
279
280
{
280
281
Information ( "\n Running NetCore Unit Tests" ) ;
281
282
var testSettings = new DotNetCoreTestSettings
282
283
{
283
- Configuration = "Release" ,
284
+ Configuration = configuration ,
284
285
NoBuild = true ,
285
286
Loggers = new [ ] { "trx;LogFilePrefix=VsTestResults" } ,
286
287
Verbosity = DotNetCoreVerbosity . Normal ,
@@ -329,7 +330,7 @@ Task("MSTestUITest")
329
330
330
331
var testSettings = new DotNetCoreTestSettings
331
332
{
332
- Configuration = "Release" ,
333
+ Configuration = configuration ,
333
334
NoBuild = true ,
334
335
Loggers = new [ ] { "trx;LogFilePrefix=VsTestResults" } ,
335
336
Verbosity = DotNetCoreVerbosity . Normal
0 commit comments