@@ -129,6 +129,25 @@ public override void Run(BuildContext context)
129129 }
130130}
131131
132+ [ TaskName ( "Format" ) ]
133+ public sealed class CheckFormatTask : FrostingTask < BuildContext >
134+ { public override void Run ( BuildContext context )
135+ {
136+ var param = context . Parameters ;
137+ context . DotNetTool ( "./" , "csharpier" , "format ." ) ;
138+ }
139+ }
140+
141+ [ TaskName ( "Check-Format" ) ]
142+ public sealed class FormatTask : FrostingTask < BuildContext >
143+ {
144+ public override void Run ( BuildContext context )
145+ {
146+ var param = context . Parameters ;
147+ context . DotNetTool ( "./" , "csharpier" , "check ." ) ;
148+ }
149+ }
150+
132151[ TaskName ( "Sonar-Begin" ) ]
133152public sealed class SonarBeginTask : FrostingTask < BuildContext >
134153{
@@ -241,6 +260,7 @@ public override void Run(BuildContext context)
241260[ TaskName ( "Default" ) ]
242261[ IsDependentOn ( typeof ( CleanTask ) ) ]
243262[ IsDependentOn ( typeof ( RestoreNuGetPackagesTask ) ) ]
263+ [ IsDependentOn ( typeof ( FormatTask ) ) ]
244264[ IsDependentOn ( typeof ( BuildTask ) ) ]
245265[ IsDependentOn ( typeof ( TestsTask ) ) ]
246266public sealed class DefaultTask : FrostingTask ;
@@ -249,6 +269,7 @@ public sealed class DefaultTask : FrostingTask;
249269[ IsDependentOn ( typeof ( CleanTask ) ) ]
250270[ IsDependentOn ( typeof ( RestoreNuGetPackagesTask ) ) ]
251271[ IsDependentOn ( typeof ( SonarBeginTask ) ) ]
272+ [ IsDependentOn ( typeof ( FormatTask ) ) ]
252273[ IsDependentOn ( typeof ( BuildTask ) ) ]
253274[ IsDependentOn ( typeof ( TestsTask ) ) ]
254275[ IsDependentOn ( typeof ( SonarEndTask ) ) ]
0 commit comments