❔ How do I see possible options using the dotnet CLI?
dotnet publish --help
shows help menu. For example,
is a possible option. How do I view all possible options I can pass? Another example:
12 Replies
https://learn.microsoft.com/en-us/dotnet/core/tools/dotnet-publish#arguments is helpful and what I use but was hoping all the options would be embedded in the CLI as well
dotnet publish command - .NET CLI
The dotnet publish command publishes a .NET project or solution to a directory.
you can dig for help messages with /? or -? dependent on the shell
dotnet /?
will show all base options and if you dig deeper you can do dotnet publish /?
on any command you get a help messageboth those work on windows terminal but when I try to use it with a command it just thinks it's a parameter
e.g.,
tries to build with RID set to
win-/?
dotnet publish --help
?I can get the help menu for
dotnet publish
easily
But the help menu shows possible options
some of which also take parametersUnknown User•16mo ago
Message Not Public
Sign In & Join Server To View
can I get the possible parameters straight from the CLI?
sorry if I wasnt clear
https://learn.microsoft.com/en-us/dotnet/core/rid-catalog
it would be a pretty long help menu to show what is possible
.NET Runtime Identifier (RID) catalog
Learn about the runtime identifier (RID) and how RIDs are used in .NET.
Unknown User•16mo ago
Message Not Public
Sign In & Join Server To View
hmm
that's fair
this is helpful too though
i just clicked on the link in the black screenshot there
Was this issue resolved? If so, run
/close
- otherwise I will mark this as stale and this post will be archived until there is new activity.