Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,13 @@ jobs:
- name: Build with nullable warnings treated as errors
shell: pwsh
run: |
& msbuild $env:SOLUTION_PATH /t:Build /m /p:Configuration=Debug `
# Use /t:Rebuild (not /t:Build) so this step always performs a genuine full
# recompile under /p:Nullable=enable. The preceding "Build with analyzers"
# step already compiled everything under the projects' own Nullable settings;
# MSBuild's incremental up-to-date check does not invalidate on a changed
# -p:Nullable command-line property alone, so a plain /t:Build here would
# silently skip recompilation and never actually enforce this gate.
& msbuild $env:SOLUTION_PATH /t:Rebuild /m /p:Configuration=Debug `
"/p:Platform=Any CPU" `
/p:Nullable=enable /p:TreatWarningsAsErrors=true
if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE }
Expand Down
Loading