question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Fix help usage for dotnet pack and restore

See original GitHub issue

Discovered this while working on similar bug in dotnet nuget command.

The help usage part of dotnet pack and dotnet restore should correctly display usage as dotnet pack ... or dotnet restore ...

PS C:\Users\anmishr\Documents\visual studio 2017\Projects\ConsoleApp1\ConsoleApp1> dotnet restore --help
restore

Usage: restore [arguments] [options] [[--] <arg>...]]
PS C:\Users\anmishr\Documents\visual studio 2017\Projects\ConsoleApp1\ConsoleApp1> dotnet pack --help
pack

Usage: pack [arguments] [options] [[--] <arg>...]]

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:6 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
blackdwarfcommented, Feb 1, 2017

The root issue has been resolved and the RC3 bits are not showing the behavior. Closing.

0reactions
mishra14commented, May 22, 2017

Verified fixed in -

E:\NuGet.Client [dev-anmishr-warning ≡]> dotnetlocal --info
.NET Command Line Tools (2.0.0-preview2-005910)

Product Information:
 Version:            2.0.0-preview2-005910
 Commit SHA-1 hash:  f3a4b22457

Runtime Environment:
 OS Name:     Windows
 OS Version:  10.0.15063
 OS Platform: Windows
 RID:         win10-x64
 Base Path:   E:\cli\artifacts\win10-x64\stage2\sdk\2.0.0-preview2-005910

Microsoft .NET Core Shared Framework Host

  Version  : 2.0.0-preview2-002093-00
  Build    : 1a195046fd92bd73d993d804bea2f4506c2b56f1
Read more comments on GitHub >

github_iconTop Results From Across the Web

dotnet restore command - .NET CLI
Specifies the URI of the NuGet package source to use during the restore operation. This setting overrides all of the sources specified in...
Read more >
dotnet pack command - .NET CLI
This command supports the dotnet restore options when passed in the long form (for example, --source ). Short form options, such as -s...
Read more >
NuGet Package Restore
In Visual Studio, select the Clear All NuGet Cache(s) button at Tools > Options > NuGet Package Manager > General. In the dotnet...
Read more >
Troubleshooting NuGet Package Restore in Visual Studio
A description of common NuGet restore errors in Visual Studio and how to troubleshoot them. ... Use NuGet Package Restore to download them....
Read more >
Install and manage NuGet packages with the dotnet CLI
See how to use the dotnet CLI to install, list, remove, and update NuGet packages. ... and then runs dotnet restore to install...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found