@@ -27,7 +27,6 @@ public class BuildScript : DefaultBuildScript
2727 "FlubuCore.WebApi.Model" ,
2828 "FlubuCore.WebApi.Client" ,
2929 "FlubuCore" ,
30- "dotnet-flubu" ,
3130 "FlubuCore.Tool" ,
3231 "FlubuCore.Analyzers" ,
3332 } ;
@@ -50,7 +49,7 @@ protected override void ConfigureTargets(ITaskContext context)
5049 var compile = context
5150 . CreateTarget ( "compile" )
5251 . SetDescription ( "Compiles the VS solution" )
53- . AddCoreTask ( x => x . UpdateNetCoreVersionTask ( "FlubuCore/FlubuCore.csproj" , "dotnet-flubu/dotnet-flubu.csproj" , " FlubuCore.Tests/FlubuCore.Tests.csproj", "FlubuCore.WebApi.Model/FlubuCore.WebApi.Model.csproj" , "FlubuCore.WebApi.Client/FlubuCore.WebApi.Client.csproj" , "FlubuCore.WebApi/FlubuCore.WebApi.csproj" , "FlubuCore.Tool/FlubuCore.Tool.csproj" ) )
52+ . AddCoreTask ( x => x . UpdateNetCoreVersionTask ( "FlubuCore/FlubuCore.csproj" , "FlubuCore.Tests/FlubuCore.Tests.csproj" , "FlubuCore.WebApi.Model/FlubuCore.WebApi.Model.csproj" , "FlubuCore.WebApi.Client/FlubuCore.WebApi.Client.csproj" , "FlubuCore.WebApi/FlubuCore.WebApi.csproj" , "FlubuCore.Tool/FlubuCore.Tool.csproj" ) )
5453 . AddCoreTask ( x => x . Build ( ) )
5554 . DependsOn ( buildVersion ) ;
5655
@@ -94,28 +93,23 @@ protected override void ConfigureTargets(ITaskContext context)
9493 DependsOn ( buildVersion ) ;
9594
9695 var packageFlubuRunner = context . CreateTarget ( "package.FlubuRunner" )
97- . SetDescription ( "Packages .net 4.62 FlubuCore runner into zip." )
96+ . SetDescription ( "Packages FlubuCore runner into zip." )
9897 . Do ( TargetPackageFlubuRunner ) ;
9998
100- var packageDotnetFlubu = context . CreateTarget ( "package.DotnetFlubu" )
101- . SetDescription ( "Packages dotnet-flubu tool into zip." )
102- . Do ( TargetPackageDotnetFlubu ) ;
103-
10499 context . CreateTarget ( "rebuild" )
105100 . SetDescription ( "Rebuilds the solution" )
106101 . SetAsDefault ( )
107102 . DependsOn ( compile , flubuTests ) ;
108103
109104 var branch = context . BuildServers ( ) . AppVeyor ( ) . BranchName ;
110-
105+
111106 context . CreateTarget ( "rebuild.server" )
112107 . SetDescription ( "Rebuilds the solution and publishes nuget packages." )
113108 . SequentialLogging ( true )
114109 . DependsOn ( compile , flubuTests )
115110 . DependsOn ( pack , publishWebApi )
116111 . DependsOnAsync ( flubuRunnerMerge )
117112 . DependsOn ( packageFlubuRunner )
118- . DependsOn ( packageDotnetFlubu )
119113 . DependsOn ( packageWebApi )
120114 . DependsOn ( nugetPublish ) . When ( ( c ) =>
121115 c . BuildServers ( ) . RunningOn == BuildServerType . AppVeyor && branch != null && branch . Contains ( "stable" , StringComparison . OrdinalIgnoreCase ) ) ;
@@ -124,7 +118,7 @@ protected override void ConfigureTargets(ITaskContext context)
124118 var compileLinux = context
125119 . CreateTarget ( "compile.linux" )
126120 . SetDescription ( "Compiles the VS solution" )
127- . AddCoreTask ( x => x . UpdateNetCoreVersionTask ( "FlubuCore/FlubuCore.csproj" , "dotnet-flubu/dotnet-flubu.csproj" , " FlubuCore.Tests/FlubuCore.Tests.csproj", "FlubuCore.GlobalTool /FlubuCore.GlobalTool .csproj" ) )
121+ . AddCoreTask ( x => x . UpdateNetCoreVersionTask ( "FlubuCore/FlubuCore.csproj" , "FlubuCore.Tests/FlubuCore.Tests.csproj" , "FlubuCore.Tool /FlubuCore.Tool .csproj" ) )
128122 . AddCoreTask ( x => x . Restore ( ) )
129123 . DependsOn ( buildVersion ) ;
130124
@@ -135,7 +129,7 @@ protected override void ConfigureTargets(ITaskContext context)
135129
136130 context . CreateTarget ( "rebuild.linux" )
137131 . SetDescription ( "Rebuilds the solution." )
138- . DependsOn ( compileLinux , flubuTestsLinux , packageDotnetFlubu ) ;
132+ . DependsOn ( compileLinux , flubuTestsLinux ) ;
139133 }
140134
141135 private void TargetPackageFlubuRunner ( ITaskContext context )
@@ -148,20 +142,6 @@ private void TargetPackageFlubuRunner(ITaskContext context)
148142 . Execute ( context ) ;
149143 }
150144
151- private void TargetPackageDotnetFlubu ( ITaskContext context )
152- {
153- context . CoreTasks ( ) . Publish ( "dotnet-flubu" ) . Framework ( "netcoreapp3.1" ) . Execute ( context ) ;
154- if ( ! Directory . Exists ( Output . CombineWith ( "dotnet-flubu" ) ) )
155- {
156- Directory . CreateDirectory ( @"output/dotnet-flubu" ) ;
157- }
158-
159- context . Tasks ( ) . PackageTask ( Output . CombineWith ( "dotnet-flubu" ) )
160- . AddDirectoryToPackage ( @"dotnet-flubu/bin/Release/netcoreapp3.1/publish" , "" , true )
161- . ZipPackage ( "dotnet-flubu" , true )
162- . Execute ( context ) ;
163- }
164-
165145 private void PublishNuGetPackage ( ITaskContext context )
166146 {
167147 var version = context . Properties . GetBuildVersion ( ) ;
@@ -188,11 +168,6 @@ private void PublishNuGetPackage(ITaskContext context)
188168 . ServerUrl ( "https://www.nuget.org/api/v2/package" )
189169 . ApiKey ( NugetApiKey ) . Execute ( context ) ;
190170
191- context . CoreTasks ( ) . NugetPush ( Output . CombineWith ( $ "dotnet-flubu.{ nugetVersion } .nupkg") )
192- . DoNotFailOnError ( e => { Console . WriteLine ( $ "Failed to publish dotnet-flubu. exception: { e . Message } ") ; } )
193- . ServerUrl ( "https://www.nuget.org/api/v2/package" )
194- . ApiKey ( NugetApiKey ) . Execute ( context ) ;
195-
196171 context . CoreTasks ( ) . NugetPush ( Output . CombineWith ( $ "FlubuCore.Tool.{ nugetVersion } .nupkg") )
197172 . DoNotFailOnError ( e => { Console . WriteLine ( $ "Failed to publish FlubuCore.Tool. exception: { e . Message } ") ; } )
198173 . ServerUrl ( "https://www.nuget.org/api/v2/package" )
@@ -222,7 +197,7 @@ private void TargetMerge(ITaskContext context)
222197 . WithArguments ( "--exclude" , "FlubuCore.dll" )
223198 . WithArguments ( "--move" )
224199 . Execute ( context ) ;
225-
200+
226201 progTask = context . Tasks ( ) . RunProgramTask ( @"tools\LibZ.Tool\1.2.0\tools\libz.exe" ) ;
227202
228203 progTask
0 commit comments