File tree 2 files changed +6
-6
lines changed
2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 50
50
CD ./docs
51
51
& ./generate-examples.ps1
52
52
& dotnet docfx docfx.json
53
- if ($lastexitcode -ne 0) {
54
- throw "docfx build failed with exit code $lastexitcode ."
53
+ if ($LastExitCode -ne 0) {
54
+ throw "docfx failed with exit code $LastExitCode ."
55
55
}
56
56
57
57
# https://www.appveyor.com/docs/how-to/git-push/
Original file line number Diff line number Diff line change 4
4
5
5
dotnet tool restore
6
6
7
- if ($LASTEXITCODE -ne 0 ) {
8
- throw " Tool restore failed with exit code $LASTEXITCODE "
7
+ if ($LastExitCode -ne 0 ) {
8
+ throw " Tool restore failed with exit code $LastExitCode "
9
9
}
10
10
11
11
$outputPath = [System.IO.Path ]::Combine([System.IO.Path ]::GetTempPath(), ' jetbrains-inspectcode-results.xml' )
12
12
$resultPath = [System.IO.Path ]::Combine([System.IO.Path ]::GetTempPath(), ' jetbrains-inspectcode-results.html' )
13
13
dotnet jb inspectcode JsonApiDotNetCore.sln -- build -- output= " $outputPath " -- profile= WarningSeverities.DotSettings -- properties:Configuration= Release -- severity= WARNING -- verbosity= WARN - dsl= GlobalAll - dsl= GlobalPerProduct - dsl= SolutionPersonal - dsl= ProjectPersonal
14
14
15
- if ($LASTEXITCODE -ne 0 ) {
16
- throw " Code inspection failed with exit code $LASTEXITCODE "
15
+ if ($LastExitCode -ne 0 ) {
16
+ throw " Code inspection failed with exit code $LastExitCode "
17
17
}
18
18
19
19
[xml ]$xml = Get-Content " $outputPath "
You can’t perform that action at this time.
0 commit comments