Visitar URL original
Fix nullable warnings in build of tests by timabell · Pull Request #855 · dotnet-outdated/dotnet-outdated · GitHub
Skip to content

Fix nullable warnings in build of tests - #855

Merged
slang25 merged 1 commit into
dotnet-outdated:masterfrom
timabell:fix-nullable-build-warnings
Nov 13, 2026
Merged

slang25 merged 1 commit into
dotnet-outdated:masterfrom
timabell:fix-nullable-build-warnings

Conversation

@timabell

Copy link
Copy Markdown
Contributor

MSBuildConditionTests and VersionExpressionTests annotate reference types as nullable (string?), but the test project has no nullable context, so each annotation raised CS8632.

Enable annotations in the files that use them, plus EndToEndTests to support future work.

Enabling them project-wide would raise xUnit1012 for every InlineData(null) passed to a non-nullable parameter, which is dozens of tests; the one such parameter in these files is now annotated.

MSBuildConditionTests and VersionExpressionTests annotate reference types
as nullable (string?), but the test project has no nullable context, so
each annotation raised CS8632.

Enable annotations in the files that use them, plus EndToEndTests to
support future work.

Enabling them project-wide would raise xUnit1012 for every
InlineData(null) passed to a non-nullable parameter, which is dozens of
tests; the one such parameter in these files is now annotated.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@slang25
slang25 merged commit 3cc8044 into dotnet-outdated:master Nov 13, 2026
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants