C
C#16mo ago
麺麭

❔ How do I see possible options using the dotnet CLI?

dotnet publish --help shows help menu. For example,
-a, --arch <ARCH> The target architecture.
-a, --arch <ARCH> The target architecture.
is a possible option. How do I view all possible options I can pass? Another example:
--os <OS> The target operating system.
--os <OS> The target operating system.
12 Replies
麺麭
麺麭OP16mo ago
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.
Joreyk ( IXLLEGACYIXL )
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 message
麺麭
麺麭OP16mo ago
both those work on windows terminal but when I try to use it with a command it just thinks it's a parameter e.g.,
dotnet publish --arch /?
dotnet publish --arch /?
tries to build with RID set to win-/?
Angius
Angius16mo ago
dotnet publish --help?
麺麭
麺麭OP16mo ago
I can get the help menu for dotnet publish easily But the help menu shows possible options some of which also take parameters
Unknown User
Unknown User16mo ago
Message Not Public
Sign In & Join Server To View
麺麭
麺麭OP16mo ago
can I get the possible parameters straight from the CLI? sorry if I wasnt clear
Joreyk ( IXLLEGACYIXL )
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
Unknown User16mo ago
Message Not Public
Sign In & Join Server To View
麺麭
麺麭OP16mo ago
hmm that's fair this is helpful too though
Joreyk ( IXLLEGACYIXL )
i just clicked on the link in the black screenshot there
Accord
Accord16mo ago
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.
Want results from more Discord servers?
Add your server