[NuGet.org Bug]: init.ps1 is not recognized as the name of a cmdlet, function, script file, or operable program #13994
Labels
Product:VS.PMConsole
Triage:NeedsMoreInfo
Type:Bug
WaitingForCustomer
Applied when a NuGet triage person needs more info from the OP
Impact
It bothers me. A fix would be nice
Describe the bug
Error message appears when opening Package Manager Console. Also, unable to run
Add-Migration Initial Create
orUpdate-Database
. These errors occur due to the init.ps1 file not being executed.When open PMC, this error is displayed:
When try running
Add-Migration InitialCreate
, this error is shown:Repro Steps
Add-Migration InitialCreate
, but this error message in the console appears,Temporary Solution
These errors are fixed after running this command,
Import-Module "C:\Users\user1\.nuget\packages\microsoft.entityframeworkcore.tools\8.0.11\tools\EntityFrameworkCore.psd1"
But have to run this command everytime when open the project or create a new project.
Additional Info
Only occurs on my laptop, the same project on a different PC doesn't have this issue.
I have uninstalled Visual Studio Community 2022 and reinstalled it. I have uninstalled all Nuget Packages and reinstalled them. I have removed all Nuget Packages cache, uninstalled all the Nuget Packages and reinstalled them.
The text was updated successfully, but these errors were encountered: