markus / packages / EntityFramework.4.3.1 / tools / init.ps1 @ 0c997b99
이력 | 보기 | 이력해설 | 다운로드 (495 Bytes)
1 |
param($installPath, $toolsPath, $package, $project) |
---|---|
2 |
|
3 |
if ([System.AppDomain]::CurrentDomain.GetAssemblies() | ?{ $_.GetName().Name -eq 'EntityFramework' }) |
4 |
{ |
5 |
Write-Warning 'There is already a version of EntityFramework.dll loaded. You may need to restart Visual Studio for the commands to work properly.' |
6 |
} |
7 |
|
8 |
if (Get-Module | ?{ $_.Name -eq 'EntityFramework' }) |
9 |
{ |
10 |
Remove-Module 'EntityFramework' |
11 |
} |
12 |
|
13 |
Import-Module (Join-Path $toolsPath 'EntityFramework.psd1') -ArgumentList $installPath |