5
5
#load "./build/parameters.cake"
6
6
7
7
BuildParameters parameters = BuildParameters . GetParameters ( Context ) ;
8
- DotNetCoreMSBuildSettings msBuildSettings = null ;
8
+ DotNetMSBuildSettings msBuildSettings = null ;
9
9
bool publishingError = false ;
10
10
11
11
var SolutionPath = "./src/FluentNHibernate.sln" ;
@@ -29,7 +29,7 @@ Setup((context) =>
29
29
var releaseNotes = string . Join ( "\n " ,
30
30
parameters . ReleaseNotes . Notes . ToArray ( ) ) . Replace ( "\" " , "\" \" " ) ;
31
31
32
- msBuildSettings = new DotNetCoreMSBuildSettings ( )
32
+ msBuildSettings = new DotNetMSBuildSettings ( )
33
33
. WithProperty ( "Version" , parameters . Version . SemVersion )
34
34
. WithProperty ( "AssemblyVersion" , parameters . Version . AssemblyVersion )
35
35
. WithProperty ( "FileVersion" , parameters . Version . Version )
@@ -45,7 +45,7 @@ Task("Clean")
45
45
. Does ( ( ) =>
46
46
{
47
47
CleanDirectories ( parameters . Paths . Directories . ToClean ) ;
48
- DotNetCoreClean ( SolutionPath ) ;
48
+ DotNetClean ( SolutionPath ) ;
49
49
EnsureDirectoryExists ( parameters . Paths . Directories . Artifacts ) ;
50
50
EnsureDirectoryExists ( parameters . Paths . Directories . ArtifactsBinFullFx ) ;
51
51
EnsureDirectoryExists ( parameters . Paths . Directories . TestResults ) ;
@@ -56,17 +56,17 @@ Task("Restore")
56
56
. IsDependentOn ( "Clean" )
57
57
. Does ( ( ) =>
58
58
{
59
- DotNetCoreRestore ( SolutionPath , new DotNetCoreRestoreSettings
59
+ DotNetRestore ( SolutionPath , new DotNetRestoreSettings
60
60
{
61
- Verbosity = DotNetCoreVerbosity . Minimal ,
61
+ Verbosity = DotNetVerbosity . Minimal ,
62
62
} ) ;
63
63
} ) ;
64
64
65
65
Task ( "Build" )
66
66
. IsDependentOn ( "Restore" )
67
67
. Does ( ( ) =>
68
68
{
69
- DotNetBuild ( SolutionPath , new DotNetCoreBuildSettings
69
+ DotNetBuild ( SolutionPath , new DotNetBuildSettings
70
70
{
71
71
Configuration = parameters . Configuration ,
72
72
MSBuildSettings = msBuildSettings
@@ -83,15 +83,15 @@ Task("Test")
83
83
84
84
foreach ( var project in testProjects )
85
85
{
86
- DotNetTest ( project . ToString ( ) , new DotNetCoreTestSettings
86
+ DotNetTest ( project . ToString ( ) , new DotNetTestSettings
87
87
{
88
88
Framework = "net461" ,
89
89
NoBuild = true ,
90
90
NoRestore = true ,
91
91
Configuration = parameters . Configuration
92
92
} ) ;
93
93
94
- DotNetTest ( project . ToString ( ) , new DotNetCoreTestSettings
94
+ DotNetTest ( project . ToString ( ) , new DotNetTestSettings
95
95
{
96
96
Framework = "net6.0" ,
97
97
NoBuild = true ,
@@ -259,11 +259,11 @@ private void PublishProjects(
259
259
string artifactsBin ,
260
260
string versionSuffix ,
261
261
string configuration ,
262
- DotNetCoreMSBuildSettings msBuildSettings )
262
+ DotNetMSBuildSettings msBuildSettings )
263
263
{
264
264
foreach ( var project in projectNames )
265
265
{
266
- DotNetCorePublish ( $ "./src/{ project } ", new DotNetCorePublishSettings
266
+ DotNetPublish ( $ "./src/{ project } ", new DotNetPublishSettings
267
267
{
268
268
Framework = framework ,
269
269
VersionSuffix = versionSuffix ,
@@ -284,7 +284,7 @@ private void PackProjects(
284
284
{
285
285
foreach ( var project in projectNames ) {
286
286
var projectPath = File ( $ "./src/{ project } /{ project } .csproj") ;
287
- DotNetCorePack ( projectPath . ToString ( ) , new DotNetCorePackSettings
287
+ DotNetPack ( projectPath . ToString ( ) , new DotNetPackSettings
288
288
{
289
289
Configuration = configuration ,
290
290
MSBuildSettings = msBuildSettings ,
0 commit comments