@@ -375,7 +375,7 @@ Commandline Examples:
375
375
</items >
376
376
</in >
377
377
<do >
378
- <echo message =" Running tests for ${path}" />
378
+ <echo message =" Running .NET Framework tests for ${path}" />
379
379
<property name =" test.bin.dir" value =" ${path}/net452" />
380
380
<property name =" test.assemblyname" value =" ${string::substring(path, string::last-index-of(path, '\') + 1, string::get-length(path) - string::last-index-of(path, '\') - 1)}" />
381
381
<property name =" test.assemblyfile" value =" ${test.assemblyname}.dll" />
@@ -384,6 +384,9 @@ Commandline Examples:
384
384
</do >
385
385
</foreach >
386
386
387
+ <!-- run .NET Core separately for now -->
388
+ <call target =" compile-test-netcore" />
389
+
387
390
<!-- build coverage summary -->
388
391
<exec program =" ${tool.dir}/ncoverexplorer/ncoverexplorer.console.exe" workingdir =" ${current.bin.dir}" failonerror =" false" if =" ${test.coverage.tool == 'ncover' and test.withcoverage}" >
389
392
<arg value =" /xml:" ${current.bin.dir}/TestCoverageSummary.xml" " />
@@ -400,8 +403,32 @@ Commandline Examples:
400
403
</exec >
401
404
</target >
402
405
406
+ <target name =" compile-test-netcore" >
407
+ <foreach item =" File" property =" file" >
408
+ <in >
409
+ <items >
410
+ <include name =" ${spring.basedir}/test/Spring/Spring.Core.Tests/Spring.Core.Tests.2010.csproj" />
411
+ <include name =" ${spring.basedir}/test/Spring/Spring.Aop.Tests/Spring.Aop.Tests.2010.csproj" />
412
+ <include name =" ${spring.basedir}/test/Spring/Spring.Data.Tests/Spring.Data.Tests.2010.csproj" />
413
+ <include name =" ${spring.basedir}/test/Spring/Spring.Testing.NUnit.Tests/Spring.Testing.NUnit.Tests.2010.csproj" />
414
+ </items >
415
+ </in >
416
+ <do >
417
+ <echo message =" Running .NET Core tests for ${file}" />
418
+
419
+ <exec program =" dotnet" verbose =" true" >
420
+ <arg line =" test" />
421
+ <arg line =" /nodeReuse:false" />
422
+ <arg line =" -c ${current.build.config}" />
423
+ <arg line =" -f netcoreapp2.1" />
424
+ <arg line =" ${file}" />
425
+ </exec >
426
+ </do >
427
+ </foreach >
428
+ </target >
429
+
403
430
<target name =" compile-net-4.5" description =" Builds .NET Framework 4.5 version"
404
- depends =" set-net-4.5-runtime-configuration, check-spring-basedir, clean-current-bin-dir, restore-nuget-packages" >
431
+ depends =" set-net-4.5-runtime-configuration, check-spring-basedir, restore-nuget-packages" >
405
432
406
433
<property name =" test.withcoverage" value =" false" overwrite =" true" />
407
434
@@ -445,7 +472,7 @@ Commandline Examples:
445
472
</target >
446
473
447
474
<target name =" compile-mono-2.0" description =" Builds MONO Framework 2.0 version"
448
- depends =" set-mono-2.0-runtime-configuration, check-spring-basedir, clean-current-bin-dir " >
475
+ depends =" set-mono-2.0-runtime-configuration, check-spring-basedir" >
449
476
<call target =" copykeys" if =" ${project.build.sign}" />
450
477
<call target =" common.generate-assemblyinfo" />
451
478
<property name =" build-ems" value =" false" overwrite =" true" />
@@ -853,7 +880,6 @@ Commandline Examples:
853
880
<include name =" **/nunit.*.xml" />
854
881
<include name =" **/NUnitAsp.dll" />
855
882
<include name =" **/NUnitAspEx.dll" />
856
- <include name =" **/Rhino.Mocks.dll" />
857
883
<include if =" ${not net-4.0}" name =" **/System.Web.Extensions.dll" />
858
884
<include name =" **/Apache.NMS.dll" />
859
885
<include name =" **/Apache.NMS.pdb" />
@@ -1089,29 +1115,6 @@ Commandline Examples:
1089
1115
1090
1116
</fileset >
1091
1117
</copy >
1092
-
1093
- <mkdir dir =" ${current.package.dir}/bin/net/3.5" />
1094
- <copy todir =" ${current.package.dir}/bin/net/3.5" verbose =" ${copy-verbose}" >
1095
- <fileset basedir =" ./build/net/3.5" >
1096
-
1097
- <include name =" */Spring.Services.dll" />
1098
- <include name =" */Spring.Services.xml" />
1099
- <include name =" */Spring.Services.pdb" />
1100
-
1101
- <include name =" */*/Spring.Scheduling.Quartz2.dll" />
1102
- <include name =" */*/Spring.Scheduling.Quartz2.xml" />
1103
- <include name =" */*/Spring.Scheduling.Quartz2.pdb" />
1104
-
1105
- <include name =" */Spring.Web.Extensions.dll" />
1106
- <include name =" */Spring.Web.Extensions.xml" />
1107
- <include name =" */Spring.Web.Extensions.pdb" />
1108
-
1109
- <include name =" */Spring.Data.NHibernate*.dll" />
1110
- <include name =" */Spring.Data.NHibernate*.xml" />
1111
- <include name =" */Spring.Data.NHibernate*.pdb" />
1112
-
1113
- </fileset >
1114
- </copy >
1115
1118
1116
1119
</if >
1117
1120
@@ -1447,52 +1450,27 @@ Commandline Examples:
1447
1450
1448
1451
<foreach item =" File" property =" filename" >
1449
1452
<in >
1450
- <items basedir =" ${spring.basedir}/src/spring" >
1451
- <include name =" **/*.nuspec" />
1453
+ <items basedir =" ${spring.basedir}/src/Spring" >
1454
+ <include name =" **/*.csproj" />
1455
+ <exclude name =" **/Spring.Messaging.Ems.csproj*" unless =" ${build-ems}" />
1452
1456
</items >
1453
1457
</in >
1454
1458
<do >
1455
1459
<echo message =" Generating NuGet Package from nuspec file: ${filename}" />
1456
-
1457
- <exec program =" ${tool.dir}\NuGet\NuGet.exe" workingdir =" ${spring.basedir}" verbose =" true" >
1458
- <arg value =" pack" />
1459
- <arg value =" ${filename}" />
1460
- <arg value =" -Version" />
1461
- <arg value =" ${nuget.package.version}" />
1462
- <arg value =" -basepath" />
1463
- <arg value =" ${spring.basedir}" />
1464
- <arg value =" -OutputDirectory" />
1465
- <arg value =" ${nuget.package.dir}" />
1466
- </exec >
1460
+ <exec program =" dotnet" verbose =" true" >
1461
+ <arg value =" pack" />
1462
+ <arg value =" -c" />
1463
+ <arg value =" Release" />
1464
+ <arg value =" -p:PackageVersion=${nuget.package.version}" />
1465
+ <arg value =" -o" />
1466
+ <arg value =" ${nuget.package.dir}" />
1467
+ <arg value =" ${filename}" />
1468
+ </exec >
1467
1469
</do >
1468
1470
</foreach >
1469
1471
</target >
1470
1472
1471
1473
<target name =" update-nuspec-metadata" depends =" set-nuget-package-version" >
1472
- <!--
1473
- INFO: this task assumes that all SPRNET components are versioned coincident with each other and
1474
- updates all version dependencies betw. SPRNET components at once
1475
- -->
1476
- <foreach item =" File" property =" filename" >
1477
- <in >
1478
- <items basedir =" ${spring.basedir}/src/spring" >
1479
- <include name =" **/*.nuspec" />
1480
- <!--
1481
- NOTE: must exclude Spring.Core.nuspec b/c it has no Spring.* deps and so the XPATH expr. won't find a match in that case
1482
- and so would fail the XMLPOKE operation otherwise
1483
- -->
1484
- <exclude name =" **/Spring.Core.nuspec" />
1485
- </items >
1486
- </in >
1487
- <do >
1488
- <echo message =" Processing nuspec file: ${filename}" />
1489
- <xmlpoke file =" ${filename}" xpath =" /n:package/n:metadata/n:dependencies/n:dependency[starts-with(@id, 'Spring.')]/@version" value =" ${nuget.package.version}" >
1490
- <namespaces >
1491
- <namespace prefix =" n" uri =" http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd" />
1492
- </namespaces >
1493
- </xmlpoke >
1494
- </do >
1495
- </foreach >
1496
1474
</target >
1497
1475
1498
1476
0 commit comments