Skip to content

Conversation

@rainersigwald
Copy link
Member

And a few other things that fell out while I was doing so.

And a few other things that fell out while I was doing so.
Copilot AI review requested due to automatic review settings May 9, 2025 20:10
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR updates multiple components to use nullable annotations for improved null safety.

  • Updated method signatures in ResourceUtilities to accept and return nullable types.
  • Modified LoggerException and BuildExceptionBase constructors and state initialization for nullability.
  • Adjusted TerminalLogger to reflect the updated nullable annotations in resource formatting.

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.

File Description
src/Shared/ResourceUtilities.cs Nullable annotations have been applied to various resource methods.
src/Framework/LoggerException.cs Exception constructors and custom state handling have been updated to use nullable types.
src/Framework/BuildException/BuildExceptionBase.cs Constructor parameter types now allow null values.
src/Build/Logging/TerminalLogger/TerminalLogger.cs Logger formatting call updated to use nullable error code and help keyword.

@rainersigwald rainersigwald enabled auto-merge (squash) May 12, 2025 16:17
@rainersigwald rainersigwald merged commit 2a521a5 into dotnet:main May 13, 2025
10 checks passed
@rainersigwald rainersigwald deleted the nullable-resourceutils branch May 13, 2025 07:59
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.

3 participants