Quantcast
Channel: Active questions tagged nuget-package - Stack Overflow
Viewing all articles
Browse latest Browse all 3067

Can't install Microsoft.EntityFrameworkCore in my project

$
0
0

I am trying to use the UseNpgSql but as far as I know I need to install the Microsoft.EntityFrameworkCore either through NuGet manager or through Package Console.

However, I keep getting this issue:

PM> dotnet add package Microsoft.EntityFrameworkCore --version 5.0.2dotnet : Could not find any project in `C:your-path\glista-api\`.At line:1 char:1+ dotnet add package Microsoft.EntityFrameworkCore --version 5.0.2+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~+ CategoryInfo          : NotSpecified: (Could not find ...a\glista-api\`.:String) [], RemoteException+ FullyQualifiedErrorId : NativeCommandErrorUsage: dotnet add <PROJECT> package [options] <PACKAGE_NAME>Arguments:<PROJECT>        The project file to operate on. If a file is not specified, the command will search the current directory for one.<PACKAGE_NAME>   The package reference to add.Options:  -h, --help                          Show command line help.  -v, --version <VERSION>             The version of the package to add.  -f, --framework <FRAMEWORK>         Add the reference only when targeting a specific framework.  -n, --no-restore                    Add the reference without performing restore preview and compatibility check.  -s, --source <SOURCE>               The NuGet package source to use during the restore.  --package-directory <PACKAGE_DIR>   The directory to restore packages to.  --interactive                       Allows the command to stop and wait for user input or action (for example to complete authentication).  --prerelease    

Whatever I do I can't install it to use UseNpgSql. Soo I don't know, I guess my question is how to fix this or if there any other ways to use PostgresSql?


Viewing all articles
Browse latest Browse all 3067

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>