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 7
7
"commands" : [
8
8
" reportgenerator"
9
9
]
10
+ },
11
+ "dotnet-format" : {
12
+ "version" : " 4.1.131201" ,
13
+ "commands" : [
14
+ " dotnet-format"
15
+ ]
10
16
}
11
17
}
12
18
}
Original file line number Diff line number Diff line change @@ -42,6 +42,14 @@ $artifacts = "$PSScriptRoot/artifacts/"
42
42
Remove-Item - Recurse $artifacts - ErrorAction Ignore
43
43
44
44
exec 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"
45
53
exec dotnet build -- configuration $Configuration ' -warnaserror:CS1591' @MSBuildArgs
46
54
exec dotnet pack -- no- restore -- no- build -- configuration $Configuration - o $artifacts @MSBuildArgs
47
55
exec dotnet build -- configuration $Configuration " $PSScriptRoot /docs/samples/samples.sln"
You can’t perform that action at this time.
0 commit comments