Skip to content

Fix CS0103: Add missing using for CommandLoggingContext#53996

Merged
jjonescz merged 1 commit intodotnet:mainfrom
MichaelSimons:fix/runfile-missing-using
Apr 20, 2026
Merged

Fix CS0103: Add missing using for CommandLoggingContext#53996
jjonescz merged 1 commit intodotnet:mainfrom
MichaelSimons:fix/runfile-missing-using

Conversation

@MichaelSimons
Copy link
Copy Markdown
Member

@MichaelSimons MichaelSimons commented Apr 20, 2026

Adds using Microsoft.DotNet.Cli.Utils; to RunFileTestBase.cs to fix the CS0103 compiler error for CommandLoggingContext.

It looks like this build error was caused by two PRs conflicting with each other - #53960 and #53884

Add using Microsoft.DotNet.Cli.Utils to RunFileTestBase.cs to resolve
CS0103 compiler error for CommandLoggingContext.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings April 20, 2026 13:53
@MichaelSimons MichaelSimons requested a review from jjonescz April 20, 2026 13:54
Copy link
Copy Markdown
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

Fixes a build break in the dotnet.Tests run-file tests by importing the namespace that contains CommandLoggingContext, resolving the reported CS0103 error.

Changes:

  • Add using Microsoft.DotNet.Cli.Utils; to make CommandLoggingContext available in RunFileTestBase.cs.

@jjonescz jjonescz enabled auto-merge (squash) April 20, 2026 13:59
@MichaelSimons
Copy link
Copy Markdown
Member Author

/ba-g intermittent unrelated test failures

@jjonescz jjonescz merged commit e6731e6 into dotnet:main Apr 20, 2026
26 of 29 checks passed
@MichaelSimons MichaelSimons deleted the fix/runfile-missing-using branch April 20, 2026 15:53
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.

4 participants