Skip to content

Report the resolved path when writing scripts and document the base for --output - #39566

Merged
AndriySvyryd merged 1 commit into
dotnet:mainfrom
ajcvickers:fix/32752-report-output-paths
Nov 13, 2026
Merged

AndriySvyryd merged 1 commit into
dotnet:mainfrom
ajcvickers:fix/32752-report-output-paths

Conversation

@ajcvickers

Copy link
Copy Markdown
Contributor

migrations script --output and dbcontext script --output now log the full path of the file they wrote, and the option's help text says that relative paths are resolved from the current directory. This is messaging only: it deliberately keeps the existing difference between migrations add -o (relative to the project directory) and script -o (relative to the working directory), and the resolved path is the same as before.

Related to #32752, which this does not close, since it does not change which directory is used.

🤖 Generated with Claude Code

…or --output

migrations script and dbcontext script resolve a relative --output against the working
directory, whereas --output-dir resolves against the project directory. Keep both, but
print the full path that was written and say so in the option help.

Part of dotnet#32752

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@ajcvickers
ajcvickers requested a review from a team as a code owner November 8, 2026 15:37
Copilot AI balanced review requested due to automatic review settings November 8, 2026 15:37

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟢 Approval recommended

No active review issues are identified, and the change is supported by targeted unit tests covering the output-path resolution cases.

No open issues 🎉

2 files not reviewed
  • src/dotnet-ef/Properties/Resources.Designer.cs: Generated file
  • src/ef/Properties/Resources.Designer.cs: Generated file

Review effort: Lite

@AndriySvyryd AndriySvyryd left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks for your contribution!

@AndriySvyryd
AndriySvyryd merged commit 0a3ef55 into dotnet:main Nov 13, 2026
20 checks passed
@dotnet-milestone-bot dotnet-milestone-bot Bot added this to the 12.0-preview1 milestone Nov 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants