@@ -178,7 +178,7 @@ jobs:
178178 $inspectCodeOutputPath = Join-Path $env:RUNNER_TEMP 'jetbrains-inspectcode-results.xml'
179179 Write-Output "INSPECT_CODE_OUTPUT_PATH=$inspectCodeOutputPath" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
180180 dotnet jb inspectcode --version
181- dotnet jb inspectcode $env:SOLUTION_FILE --build --dotnetcoresdk=$(dotnet --version) --output="$inspectCodeOutputPath" --format="xml" --profile=WarningSeverities.DotSettings --properties:Configuration=Release --properties:ContinuousIntegrationBuild=false --properties:RunAnalyzers=false --properties:NuGetAudit=false --severity=WARNING --verbosity=WARN -dsl =GlobalAll -dsl =GlobalPerProduct -dsl =SolutionPersonal -dsl =ProjectPersonal
181+ dotnet jb inspectcode $env:SOLUTION_FILE --build --no-updates -- dotnetcoresdk=$(dotnet --version) --output="$inspectCodeOutputPath" --format="xml" --profile=WarningSeverities.DotSettings --properties:Configuration=Release --properties:ContinuousIntegrationBuild=false --properties:RunAnalyzers=false --properties:NuGetAudit=false --severity=WARNING --verbosity=WARN --disable-settings-layers =GlobalAll --disable-settings-layers =GlobalPerProduct --disable-settings-layers =SolutionPersonal --disable-settings-layers =ProjectPersonal
182182 - name : Upload output to artifacts
183183 uses : actions/upload-artifact@v5
184184 with :
@@ -199,7 +199,7 @@ jobs:
199199 $issueType = $xml.report.IssueTypes.SelectSingleNode("IssueType[@Id='$($_.TypeId)']")
200200 $severity = $_.Severity ?? $issueType.Severity
201201
202- Write-Output "[$severity] $($_.File):$($_.Line) $($_.TypeId): $($_.Message)"
202+ Write-Output "[$severity] $($_.File) ($_.TargetFramework) :$($_.Line) $($_.TypeId): $($_.Message)"
203203 })
204204 })
205205 }
@@ -238,6 +238,8 @@ jobs:
238238 run : dotnet tool restore
239239 - name : Restore packages
240240 run : dotnet restore /p:NuGetAudit=false
241+ - name : Build
242+ run : dotnet build --no-restore --configuration Release /p:RunAnalyzers=false
241243 - name : CleanupCode (on PR diff)
242244 if : ${{ github.event_name == 'pull_request' }}
243245 shell : pwsh
@@ -249,14 +251,14 @@ jobs:
249251
250252 Write-Output "Running code cleanup on commit range $baseCommitHash..$headCommitHash in pull request."
251253 dotnet jb cleanupcode --version
252- dotnet regitlint -s $env:SOLUTION_FILE --print-command --skip-tool-check --max-runs=5 --jb --dotnetcoresdk=$(dotnet --version) --jb-profile="JADNC Full Cleanup" --jb --properties:Configuration=Release --jb --properties:RunAnalyzers=false --jb --properties:NuGetAudit=false --jb --verbosity=WARN -f commits -a $headCommitHash -b $baseCommitHash --fail-on-diff --print-diff
254+ dotnet regitlint -s $env:SOLUTION_FILE --print-command --skip-tool-check --max-runs=5 --jb --dotnetcoresdk=$(dotnet --version) --jb-profile="JADNC Full Cleanup" --jb --no-updates --jb -- properties:Configuration=Release --jb --properties:RunAnalyzers=false --jb --properties:NuGetAudit=false --jb --verbosity=WARN -f commits -a $headCommitHash -b $baseCommitHash --fail-on-diff --print-diff
253255 - name : CleanupCode (on branch)
254256 if : ${{ github.event_name == 'push' || github.event_name == 'release' || github.event_name == 'workflow_dispatch' }}
255257 shell : pwsh
256258 run : |
257259 Write-Output 'Running code cleanup on all files.'
258260 dotnet jb cleanupcode --version
259- dotnet regitlint -s $env:SOLUTION_FILE --print-command --skip-tool-check --jb --dotnetcoresdk=$(dotnet --version) --jb-profile="JADNC Full Cleanup" --jb --properties:Configuration=Release --jb --properties:RunAnalyzers=false --jb --properties:NuGetAudit=false --jb --verbosity=WARN --fail-on-diff --print-diff
261+ dotnet regitlint -s $env:SOLUTION_FILE --print-command --skip-tool-check --jb --dotnetcoresdk=$(dotnet --version) --jb-profile="JADNC Full Cleanup" --jb --no-updates --jb -- properties:Configuration=Release --jb --properties:RunAnalyzers=false --jb --properties:NuGetAudit=false --jb --verbosity=WARN --fail-on-diff --print-diff
260262
261263 publish :
262264 timeout-minutes : 60
0 commit comments