Skip to content

Conversation

@devlead
Copy link
Contributor

@devlead devlead commented Nov 25, 2025

Looked at https://learn.microsoft.com/en-us/dotnet/core/tools/ and it would seem dotnet project convert was missing.

This PR proposes to add documentation for the dotnet project convert command, which converts file-based programs to project-based programs.

The documentation includes:

  • Command synopsis and description
  • Conversion process details
  • All command options (--dry-run, --force, --interactive, --output)
  • Examples showing conversion from file-based to project-based structure
  • Translation of #:sdk, #:package, and #:property directives

Internal previews

📄 File 🔗 Preview link
docs/core/tools/dotnet-project-convert.md docs/core/tools/dotnet-project-convert
docs/core/tools/index.md docs/core/tools/index
docs/navigate/tools-diagnostics/toc.yml docs/navigate/tools-diagnostics/toc

Adds documentation for the dotnet project convert command, which converts
file-based programs to project-based programs. The documentation includes:

- Command synopsis and description
- Conversion process details
- All command options (--dry-run, --force, --interactive, --output)
- Examples showing conversion from file-based to project-based structure
- Translation of #:sdk, #:package, and #:property directives
Copilot AI review requested due to automatic review settings November 25, 2025 13:17
@devlead devlead requested review from a team and meaghanlewis as code owners November 25, 2025 13:17
@dotnetrepoman dotnetrepoman bot added this to the November 2025 milestone Nov 25, 2025
@dotnet-policy-service dotnet-policy-service bot added dotnet-fundamentals/svc dotnet-cli/subsvc community-contribution Indicates PR is created by someone from the .NET community. labels Nov 25, 2025
Copilot finished reviewing on behalf of devlead November 25, 2025 13:19
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 adds comprehensive documentation for the dotnet project convert command, a new .NET 10 SDK CLI tool that converts file-based C# programs into traditional project-based programs with .csproj files.

Key changes:

  • New documentation file explaining the command's purpose, syntax, and behavior
  • Detailed conversion process documentation showing how file-based directives are translated to MSBuild properties
  • Complete command reference with all options (--dry-run, --force, --interactive, --output) and practical examples

Copy link
Contributor

@meaghanlewis meaghanlewis left a comment

Choose a reason for hiding this comment

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

@devlead thanks for adding this doc!

Can you also add an entry for it in: the TOC, and this landing page?

Adds the dotnet project convert command to the CLI index and table of contents.
@devlead
Copy link
Contributor Author

devlead commented Nov 25, 2025

@devlead thanks for adding this doc!

Can you also add an entry for it in: the TOC, and this landing page?

done.

@devlead devlead requested a review from meaghanlewis November 25, 2025 21:40
@meaghanlewis meaghanlewis merged commit 4506620 into dotnet:main Nov 26, 2025
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

community-contribution Indicates PR is created by someone from the .NET community. dotnet-cli/subsvc dotnet-fundamentals/svc

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants