1
- #addin "nuget:?package=Cake.MinVer&version=1 .0.1 "
2
- #addin "nuget:?package=Cake.Args&version=1 .0.1 "
1
+ #addin "nuget:?package=Cake.MinVer&version=2 .0.0 "
2
+ #addin "nuget:?package=Cake.Args&version=2 .0.0 "
3
3
4
4
var target = ArgumentOrDefault < string > ( "target" ) ?? "pack" ;
5
5
var buildVersion = MinVer ( s => s . WithTagPrefix ( "v" ) . WithDefaultPreReleasePhase ( "preview" ) ) ;
@@ -15,7 +15,7 @@ Task("restore")
15
15
. IsDependentOn ( "clean" )
16
16
. Does ( ( ) =>
17
17
{
18
- DotNetCoreRestore ( "./Ookii.Dialogs.Wpf.sln" , new DotNetCoreRestoreSettings
18
+ DotNetRestore ( "./Ookii.Dialogs.Wpf.sln" , new DotNetRestoreSettings
19
19
{
20
20
LockedMode = true ,
21
21
} ) ;
@@ -25,12 +25,12 @@ Task("build")
25
25
. IsDependentOn ( "restore" )
26
26
. DoesForEach ( new [ ] { "Debug" , "Release" } , ( configuration ) =>
27
27
{
28
- DotNetCoreBuild ( "./Ookii.Dialogs.Wpf.sln" , new DotNetCoreBuildSettings
28
+ DotNetBuild ( "./Ookii.Dialogs.Wpf.sln" , new DotNetBuildSettings
29
29
{
30
30
Configuration = configuration ,
31
31
NoRestore = true ,
32
32
NoIncremental = false ,
33
- MSBuildSettings = new DotNetCoreMSBuildSettings
33
+ MSBuildSettings = new DotNetMSBuildSettings
34
34
{
35
35
Version = buildVersion . Version ,
36
36
AssemblyVersion = buildVersion . AssemblyVersion ,
@@ -44,7 +44,7 @@ Task("test")
44
44
. IsDependentOn ( "build" )
45
45
. Does ( ( ) =>
46
46
{
47
- var settings = new DotNetCoreTestSettings
47
+ var settings = new DotNetTestSettings
48
48
{
49
49
Configuration = "Release" ,
50
50
NoRestore = true ,
@@ -54,7 +54,7 @@ Task("test")
54
54
var projectFiles = GetFiles ( "./test/**/*.csproj" ) ;
55
55
foreach ( var file in projectFiles )
56
56
{
57
- DotNetCoreTest ( file . FullPath , settings ) ;
57
+ DotNetTest ( file . FullPath , settings ) ;
58
58
}
59
59
} ) ;
60
60
@@ -64,30 +64,30 @@ Task("pack")
64
64
{
65
65
var releaseNotes = $ "https://github.com/ookii-dialogs/ookii-dialogs-wpf/releases/tag/v{ buildVersion . Version } ";
66
66
67
- DotNetCorePack ( "./src/Ookii.Dialogs.Wpf/Ookii.Dialogs.Wpf.csproj" , new DotNetCorePackSettings
67
+ DotNetPack ( "./src/Ookii.Dialogs.Wpf/Ookii.Dialogs.Wpf.csproj" , new DotNetPackSettings
68
68
{
69
69
Configuration = "Release" ,
70
70
NoRestore = true ,
71
71
NoBuild = true ,
72
72
IncludeSymbols = true ,
73
73
IncludeSource = true ,
74
74
OutputDirectory = "./artifact/nuget" ,
75
- MSBuildSettings = new DotNetCoreMSBuildSettings
75
+ MSBuildSettings = new DotNetMSBuildSettings
76
76
{
77
77
Version = buildVersion . Version ,
78
78
PackageReleaseNotes = releaseNotes ,
79
79
} ,
80
80
} ) ;
81
81
82
- DotNetCorePack ( "./src/Ookii.Dialogs/Ookii.Dialogs.csproj" , new DotNetCorePackSettings
82
+ DotNetPack ( "./src/Ookii.Dialogs/Ookii.Dialogs.csproj" , new DotNetPackSettings
83
83
{
84
84
Configuration = "Release" ,
85
85
NoRestore = true ,
86
86
NoBuild = true ,
87
87
IncludeSymbols = false ,
88
88
IncludeSource = false ,
89
89
OutputDirectory = "./artifact/nuget" ,
90
- MSBuildSettings = new DotNetCoreMSBuildSettings
90
+ MSBuildSettings = new DotNetMSBuildSettings
91
91
{
92
92
Version = buildVersion . Version ,
93
93
PackageReleaseNotes = releaseNotes ,
@@ -113,15 +113,15 @@ Task("push")
113
113
return ;
114
114
}
115
115
116
- var nugetPushSettings = new DotNetCoreNuGetPushSettings
116
+ var nugetPushSettings = new DotNetNuGetPushSettings
117
117
{
118
118
Source = url ,
119
119
ApiKey = apiKey ,
120
120
} ;
121
121
122
122
foreach ( var nugetPackageFile in GetFiles ( "./artifact/nuget/*.nupkg" ) )
123
123
{
124
- DotNetCoreNuGetPush ( nugetPackageFile . FullPath , nugetPushSettings ) ;
124
+ DotNetNuGetPush ( nugetPackageFile . FullPath , nugetPushSettings ) ;
125
125
}
126
126
} ) ;
127
127
0 commit comments