Skip to content

Conversation

@Winniexu01
Copy link
Member

Fixes dotnet/source-build#4803

This is a regression caused by #45393

@ghost ghost added Area-Infrastructure untriaged Request triage from a team member labels Dec 11, 2024
@KalleOlaviNiemitalo
Copy link
Contributor

An alternative would be to make it Stopwatch? sw = null and then replace if (CommandLoggingContext.IsVerbose) with if (sw is not null) on line 75. That would avoid creating an unused instance of Stopwatch.

Copy link
Member

@jjonescz jjonescz left a comment

Choose a reason for hiding this comment

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

I would prefer #45411

Copy link
Member

@ellahathaway ellahathaway left a comment

Choose a reason for hiding this comment

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

I would prefer #45411

Agreed. I think that we address this with the PR linked above.

@Winniexu01 Winniexu01 closed this Dec 12, 2024
@Winniexu01 Winniexu01 deleted the FixStopwatchClass branch April 11, 2025 01:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area-Infrastructure untriaged Request triage from a team member

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Main] SDK failed during build

4 participants