Skip to content

invalid CLI command #45641

Closed
Closed
@TheWurst

Description

@TheWurst

Type of issue

Code doesn't work

Description

The example command to install the Microsoft.Data.Sqlite nuget package from the CLI does not work with the dotnet cli version 8.0.114

example on page
dotnet package add Microsoft.Data.Sqlite

running the command results in an error message

Could not execute because the specified command or file was not found.
Possible reasons for this include:
  * You misspelled a built-in dotnet command.
  * You intended to execute a .NET program, but dotnet-package does not exist.
  * You intended to run a global tool, but a dotnet-prefixed executable with this name could not be found on the PATH.

I can confirm that dotnet is installed and the package exists; because, I was able to install the package with the following command in the VS Code terminal.
dotnet add RazorProject.csproj package Microsoft.Data.Sqlite

Page URL

https://learn.microsoft.com/en-us/dotnet/standard/data/sqlite/?tabs=net-cli

Content source URL

https://github.com/dotnet/docs/blob/main/docs/standard/data/sqlite/index.md

Document Version Independent Id

db9e319f-689a-f356-957e-23457bdcea7e

Platform Id

7aa20d70-28eb-a2c8-6445-199a68c78cc5

Article author

@ajcvickers

Metadata

  • ID: 91c03d8e-0706-c4bb-80bb-a4a36e36af23
  • PlatformId: 7aa20d70-28eb-a2c8-6445-199a68c78cc5
  • Service: dotnet-data

Related Issues


Associated WorkItem - 419039

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions