File C:\\Users\\Acer\\Desktop\\Projelerim\\BEM_CANLI\\BEM\\packages\\EntityFramework.5.
0.0\\tools\\init.ps1 cannot be loade
We have been facing the same issue today with Visual Studio 2017 and Entity Framework 6, and none of the solutions proposed here has worked. As a workaround, this is the temporary solution we found to be able to use Entity Framework commands in the Package Manager Console:
Execute the following commands in the Package Manager Console
Set-ExecutionPolicy -Scope Process Bypass
Import-Module "your-solution-directory/packages/EntityFramework/EntityFramework.psd1"
Actually, the Import-Module
command is what the init1.ps1
script does.