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

--package template parameter has changed to --param:package in .NET 5 #5198

Closed
vytas-dauksa opened this issue Sep 5, 2022 · 2 comments · Fixed by #5269
Closed

--package template parameter has changed to --param:package in .NET 5 #5198

vytas-dauksa opened this issue Sep 5, 2022 · 2 comments · Fixed by #5269
Assignees
Labels
area: doc The issue requires documentation update, not a code change. triaged The issue was evaluated by the triage team, placed on correct area, next action defined.
Milestone

Comments

@vytas-dauksa
Copy link

One of our templates accepts --package template parameter, which worked fine in .NET 3.1, however since .NET 5 it's now changed to --param:package. I suspect package became a reserved keyword, but I am not able to find any documentation about such backward incompatibilities. Where could I learn more about this?

@vlada-shubina
Copy link
Member

We introduced --package in .NET 5.0, and it became a reserved option. Basically all options described in https://docs.microsoft.com/en-us/dotnet/core/tools/dotnet-new and children pages are reserved.

However, since .NET 7.0 we moved to new parser that allowed us to do subcommands. Since .NET 7.0 only parent command options and options that required for instantiations are reserved.

It's not documented anywhere, we need to create an article on this.

@vlada-shubina vlada-shubina added the triaged The issue was evaluated by the triage team, placed on correct area, next action defined. label Sep 6, 2022
@vlada-shubina vlada-shubina added this to the October 2022 milestone Sep 6, 2022
@vlada-shubina
Copy link
Member

vlada-shubina commented Sep 6, 2022

Tasks:

  • check if --package is not a reserved option in .NET 7.0
  • document the list of reserved options (at least .NET 7.0 plus)
  • nth: also document how to override the options name via host files in the same doc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: doc The issue requires documentation update, not a code change. triaged The issue was evaluated by the triage team, placed on correct area, next action defined.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants