-
Notifications
You must be signed in to change notification settings - Fork 258
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PowerShell5 breaks EntityFramework install? #3312
Comments
@zhili1208 @rrelyea can you share more information about this? |
@divega this issue only repro on customer's win7 machine, doesn't repro on customer's win10. Also I didn't get an repro on my win7 box. The problem is that the ps1 files literally does not exist when PowerShell tries to run it. It is created and the contents written to it just milliseconds later. |
Thanks @zhili1208. Do you mean the ps1 file from the package hasn't been written to disk? cc @bricelam and @natemcmaster for insights or in case they have seen anything like this. |
EF Core commands has two different ps1 files, tools/init.ps1 and tools/install.ps1. Does NuGet ensure extraction from nupkg is complete before executing init.ps1 and/or install.ps1? |
@natemcmaster Yes, I think nuget ensure the extraction complete, I will ask customer to verify this again, will provide more info later. |
@divega @natemcmaster the customer found the root problem, when they removed a policy that prevented powershell scripts from running, they still had an __PSLockDownPolicy environment variable set to 4, which after removal, appears to have corrected the issue. |
Glad to hear. Thanks! |
Can NuGet warn during package install if that's set? |
@bricelam Yes, I think Nuget did some policy check even change policy for customer before, I will check that, if there is no that check, will file an bug for that. |
Please investigate this issue that came via internal email.
The text was updated successfully, but these errors were encountered: