A component of ASP.NET for creating RESTful web services that support HTTP-based communication between clients and servers.
The project directory is the folder that contains the .csproj (or .fsproj) file for the ASP.NET/ASP.NET API project, not the bin folder.
Run the dotnet add package sqlite-net-pcl (or Microsoft.Data.Sqlite) command from the same folder where the project file lives, for example:
MySolution/
MyApiProject/
MyApiProject.csproj <-- run dotnet commands here
Program.cs
appsettings.json
bin/
obj/
So:
- Open a terminal/PowerShell.
-
cdinto the folder that containsYourProject.csproj. - Run the
dotnet add package ...command there.
Do not run it inside bin, obj, or any other build output folder.
References: