Visual studio package manager console hangs
I have never encountered this issue before and it seems like nothing is happening. The nuget client tools provide the ability to produce and consume packages. When I enter the add-migration part, my package manager just hangs and does nothing. Package manager console hangs microsoft visual studio. This is the dbcontext file that I use: public DocumentStudioDbContext ( DbContextOptions options ) : base ( options ) $env:ASPNETCORE_ENVIRONMENT="Development"Īdd-Migration DocumentStudioBaseMigration -Context DocumentStudioDbContext -OutputDir Migrations\DocumentStudioMigrations.$env:DOCUMENT_STUDIO_DSSCHEMA="DocumentStudio".$env:DOCUMENT_STUDIO_CONNECTIONSTRING="Server=.\SQLEXPRESS Database=DBONE Trusted_Connection=False MultipleActiveResultSets=true User Id=user Password=password".Then check if there are any generated files under your outputdir, try it again with a different outputdir. And in order to check if it is caused by your Scaffold-DbContext, I suggest you try anotehr command via Package Manager Console such as Get-DbContext. The NuGet Gallery is the central package repository used by all package authors and consumers. First, please modify your Visiual Studio. $env:CENTRAL_APPLICATION_SETTINGS="C:\Users\amosa\source\repos\DotNetCore\CentralApplicationSettings\CentralApplicationSettings" The NuGet client tools provide the ability to produce and consume packages.For example, finding and installing a package is done with three easy steps: Step 1: Open the project/solution in Visual Studio, and open the console using the Tools > NuGet Package Manager > Package Manager Console command. When trying to open the Package Manager Console, the window just hangs with the. When I want to add an migration, these are the steps that I perform before typing the add-migration command: To use nuget.exe CLI commands in the console, see Using the nuget.exe CLI in the console. You can access the Package Manager Console from within Visual Studio by.