Share via

Issue to setup Sql Lite for the project

Scott Huang 3,491 Reputation points
2026-05-06T09:03:44.4866667+00:00

Hi,

To the way below, which is the exact project directory? Not bin path right?

User's image

Developer technologies | ASP.NET | ASP.NET API

1 answer

Sort by: Most helpful
  1. Q&A Assist
    2026-05-06T09:03:55.82+00:00
    AI generated content. This question contains an answer created with AI from Q&A Assist. Learn more

    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:

    1. Open a terminal/PowerShell.
    2. cd into the folder that contains YourProject.csproj.
    3. Run the dotnet add package ... command there.

    Do not run it inside bin, obj, or any other build output folder.


    References:

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.