init.ps1 495 B

12345678910111213
  1. param($installPath, $toolsPath, $package, $project)
  2. if ([System.AppDomain]::CurrentDomain.GetAssemblies() | ?{ $_.GetName().Name -eq 'EntityFramework' })
  3. {
  4. Write-Warning 'There is already a version of EntityFramework.dll loaded. You may need to restart Visual Studio for the commands to work properly.'
  5. }
  6. if (Get-Module | ?{ $_.Name -eq 'EntityFramework' })
  7. {
  8. Remove-Module 'EntityFramework'
  9. }
  10. Import-Module (Join-Path $toolsPath 'EntityFramework.psd1') -ArgumentList $installPath