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
Introduce a way to create a solution file #7479
Comments
|
Thoughts? |
I'd probably not add all projects by default. |
I'm definitely all for this. I like @blackdwarf's suggestion and @dasMulli's refinement quite a bit. |
This PR adds a create subcommand within the dotnet sln command. It will drop a predefined SLN file to disk. The commands accepts one parameter and that is the name of the file w/ an extension. This is a pretty basic implementation for this first turn of the crank. Fixed #5259
So we currently don't really support globbing as a parameter in any other CLI command. I would not like to introduce it here simply because I think it would require some more thought as to how it applies to other commands etc. So the question remains, should then the first turn of the crank of I would vote for option #4283 due to the time pressure. |
@blackdwarf in my example, the globs are evaluated by the user's shell. I think it already works with |
@dasMulli interestingly enough, I can repro this on |
This PR adds a create subcommand within the dotnet sln command. It will drop a predefined SLN file to disk. The commands accepts one parameter and that is the name of the file w/ an extension. This is a pretty basic implementation for this first turn of the crank. Fixed #5259
For 1.0.0 this will be handled via a template that will come in as part of |
The template is in place in the version that will get picked up by the new3 cutover |
@blackdwarf I think the default behaviour should be just to create the solution file ("first turn of the crank"), with the option to then add project files via a switch. So:
would drop a valid sln in the containing folder with the given name (or, default to the folder name). It should be able to handle
would do the above and also discover and add all project files below the containing folder. Globbing functionality can be added later, but personally I think the above would cater for 90% of all cases. |
Fixed by dotnet/cli#5430 |
For anyone wondering, you can create a solution file using |
No description provided.
The text was updated successfully, but these errors were encountered: