You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
“After this, the project is ready to be compiled and/or edited further.”
That’s not 100% accurate. The user has to run dotnet restore before it’s ready to be compiled.
“The command contains a default list of templates; use dotnet new --help”
This should be changed to “dotnet new --list”
In the article I don’t see any usage of project template specific help. For example dotnet new mvc --help. We should include that.
Thanks for opening a new one so we can discuss some of your suggestions @sayedihashimi and work a bit more on this topic.
“After this, the project is ready to be compiled and/or edited further.”
That’s not 100% accurate. The user has to run dotnet restore before it’s ready to be compiled.
Well, the compilation process is a 2-step process, where you first need to restore then build. I can try to change the wording to make it a bit more clear but the project is actually ready to be compiled.
“The command contains a default list of templates; use dotnet new --help”
This should be changed to “dotnet new --list”
Well, both commands give almost the same exact output with the difference that --help also gives you examples on the bottom. So I'll add --list as an option.
In the article I don’t see any usage of project template specific help. For example dotnet new mvc --help. >We should include that.
We do show the syntax with the template value: dotnet new [template] [-lang|--language] [-n|--name] [-o|--output] [-h|--help]
I'll change the syntax to actually be dotnet new <template> [-lang|--language] [-n|--name] [-o|--output] [-h|--help] since template is not optional on that line.
I can also add some info on the attribute description itself about this.
I'm also planning to do some further edits to that topic:
I'd like to list the templates that come pre-installed
The basic description is still the old one. It should be changed to reflect the new behavior of templates allowing you to create projects or solutions.
Well, the compilation process is a 2-step process, where you first need to restore then build
With a statement like "the project is ready to be compiled", gives me the impression that I can execute dotnet build which won't work in this case.
Well, both commands give almost the same exact output with the difference that --help also gives you examples on the bottom. So I'll add --list as an option.
dotnet new --help will be updated to tell users to run dotnet new --list to see the template list. Please change this to dotnet new --list so that the docs are future proof.
We do show the syntax with the template value:
Sorry I may not have been clear. Templates can have specific parameters (the MVC template shows this). From the current state of the article I didn't not leave with that understanding.
No problem. Another thing I've noticed:
If you have a project in the folder when you're running dotnet new --list, you won't get all templates. So I'm guessing we should change that sentence to say dotnet new -all.
Will this come with the next release or later @sayedihashimi? If later, I'd prefer to edit the topic in the future to show --list instead of -all; otherwise, people can get confused.
Activity
mairaw commentedon Mar 3, 2017
Thanks for opening a new one so we can discuss some of your suggestions @sayedihashimi and work a bit more on this topic.
Well, the compilation process is a 2-step process, where you first need to restore then build. I can try to change the wording to make it a bit more clear but the project is actually ready to be compiled.
Well, both commands give almost the same exact output with the difference that --help also gives you examples on the bottom. So I'll add --list as an option.
We do show the syntax with the template value:
dotnet new [template] [-lang|--language] [-n|--name] [-o|--output] [-h|--help]I'll change the syntax to actually be
dotnet new <template> [-lang|--language] [-n|--name] [-o|--output] [-h|--help]since template is not optional on that line.I can also add some info on the attribute description itself about this.
I'm also planning to do some further edits to that topic:
Thanks!
sayedihashimi commentedon Mar 3, 2017
@mairaw
With a statement like "the project is ready to be compiled", gives me the impression that I can execute
dotnet buildwhich won't work in this case.dotnet new --helpwill be updated to tell users to rundotnet new --listto see the template list. Please change this todotnet new --listso that the docs are future proof.Sorry I may not have been clear. Templates can have specific parameters (the MVC template shows this). From the current state of the article I didn't not leave with that understanding.
mairaw commentedon Mar 3, 2017
We have two copies of the article right now. This will change once we release VS 2017 RTM.
Are you looking at this page? There is a section about template options: https://docs.microsoft.com/en-us/dotnet/articles/core/preview3/tools/dotnet-new#template-options
sayedihashimi commentedon Mar 3, 2017
Sorry I missed the Template Options section.
mairaw commentedon Mar 5, 2017
No problem. Another thing I've noticed:
If you have a project in the folder when you're running
dotnet new --list, you won't get all templates. So I'm guessing we should change that sentence to saydotnet new -all.sayedihashimi commentedon Mar 5, 2017
The behavior of --list is changing to always show all templates, unless the user passes in another parameter indicating project/item.
mairaw commentedon Mar 6, 2017
Will this come with the next release or later @sayedihashimi? If later, I'd prefer to edit the topic in the future to show
--listinstead of-all; otherwise, people can get confused.