Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add dotnet new sln --format slnx #44469

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

kasperk81
Copy link
Contributor

dotnet new sln --help
Solution File
Author: Microsoft
Description: Create an empty solution containing no projects

Usage:
  dotnet new sln [options] [template options]
  dotnet new solution [options] [template options]

Options:
  -n, --name <name>      The name for the output being created. If no name is specified, the name of the output directory is used.
  -o, --output <output>  Location to place the generated output.
  --dry-run              Displays a summary of what would happen if the given command line were run if it would result in a template creation.
  --force                Forces content to be generated even if it would change existing files.
  --no-update-check      Disables checking for the template package updates when instantiating a template.
  --project <project>    The project that should be used for context evaluation.

Template options:
  -f, --format <sln|slnx>  Choose the format for the solution file: traditional (.sln) or XML-based (.slnx).
                           Type: choice
                             sln   Traditional solution file
                             slnx  XML-based solution file
                           Default: sln

default (without --format) is .sln.

Contributes to #40913

@kasperk81 kasperk81 requested a review from a team as a code owner October 27, 2024 00:32
@dotnet-issue-labeler dotnet-issue-labeler bot added Area-Infrastructure untriaged Request triage from a team member labels Oct 27, 2024
@kasperk81 kasperk81 changed the title add dotnet new sln --slnx add dotnet new sln --format slnx Oct 27, 2024
@kasperk81
Copy link
Contributor Author

@baronfel ptal. i don't know why the ci is not starting here. i tried closing reopening and pushing changes but no luck

@baronfel
Copy link
Member

@kasperk81 my best guess is that resources are slammed right now preparing for .NET 9 GA? I'll kick them and see if that helps.

@baronfel
Copy link
Member

/azp run dotnet-sdk-public-ci,sdk-source-build, sdk-unified-build

Copy link
Member

@baronfel baronfel left a comment

Choose a reason for hiding this comment

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

The content here seems fine - though without dotnet sln add and dotnet sln remove users won't be able to really do anything useful with the slnx yet. That's fine, I just wanted to call it out for now.

Thank you for taking an interest in this @kasperk81!

@kasperk81
Copy link
Contributor Author

Thanks @baronfel! This PR (dotnet new sln -f slnx, adding a new argument to an existing command) and the related PR #44419 (dotnet sln migrate, introducing a new command) are two of the three PRs required to complete this feature. The upcoming PR will focus on adding slnx support to dotnet sln {add, remove, list} and may also replace SlnFile.cs with vs-solutionpersistence to handle both traditional and XML formats for loading, modifying, and saving the solution model, given that vs-solutionpersistence supports both with unified API. Once all three PRs are merged, we can backport them to the 9.0.200 branch.

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.

2 participants