File tree Expand file tree Collapse file tree 2 files changed +14
-0
lines changed
Expand file tree Collapse file tree 2 files changed +14
-0
lines changed Original file line number Diff line number Diff line change 77 "commands" : [
88 " reportgenerator"
99 ]
10+ },
11+ "dotnet-format" : {
12+ "version" : " 4.1.131201" ,
13+ "commands" : [
14+ " dotnet-format"
15+ ]
1016 }
1117 }
1218}
Original file line number Diff line number Diff line change @@ -42,6 +42,14 @@ $artifacts = "$PSScriptRoot/artifacts/"
4242Remove-Item - Recurse $artifacts - ErrorAction Ignore
4343
4444exec dotnet tool restore
45+
46+ [string []] $formatArgs = @ ()
47+ if ($ci ) {
48+ $formatArgs += ' --check'
49+ }
50+
51+ exec dotnet tool run dotnet- format -- - v detailed @formatArgs " $PSScriptRoot /CommandLineUtils.sln"
52+ exec dotnet tool run dotnet- format -- - v detailed @formatArgs " $PSScriptRoot /docs/samples/samples.sln"
4553exec dotnet build -- configuration $Configuration ' -warnaserror:CS1591' @MSBuildArgs
4654exec dotnet pack -- no- restore -- no- build -- configuration $Configuration - o $artifacts @MSBuildArgs
4755exec dotnet build -- configuration $Configuration " $PSScriptRoot /docs/samples/samples.sln"
You can’t perform that action at this time.
0 commit comments