Skip to content

Commit

Permalink
PMC Tools: Allow opening projects from a file share
Browse files Browse the repository at this point in the history
Fixes #7540
  • Loading branch information
bricelam committed May 15, 2017
1 parent d045dfb commit eac031c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/EFCore.Tools/tools/EntityFrameworkCore.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -404,7 +404,7 @@ function Script-Migration
if (!(Split-Path $intermediatePath -IsAbsolute))
{
$projectDir = GetProperty $dteProject.Properties 'FullPath'
$intermediatePath = Join-Path $projectDir $intermediatePath -Resolve
$intermediatePath = Join-Path $projectDir $intermediatePath -Resolve | Convert-Path
}

$scriptFileName = [IO.Path]::ChangeExtension([IO.Path]::GetRandomFileName(), '.sql')
Expand Down Expand Up @@ -592,7 +592,7 @@ function GetStartupProject($name, $fallbackProject)
if (!(Split-Path -IsAbsolute $startupProjectPath))
{
$solutionPath = Split-Path (GetProperty $DTE.Solution.Properties 'Path')
$startupProjectPath = Join-Path $solutionPath $startupProjectPath -Resolve
$startupProjectPath = Join-Path $solutionPath $startupProjectPath -Resolve | Convert-Path
}

$startupProject = GetSolutionProjects | ?{
Expand Down Expand Up @@ -744,7 +744,7 @@ function EF($project, $startupProject, $params, [switch] $skipBuild)

$startupProjectDir = GetProperty $startupProject.Properties 'FullPath'
$outputPath = GetProperty $startupProject.ConfigurationManager.ActiveConfiguration.Properties 'OutputPath'
$targetDir = Join-Path $startupProjectDir $outputPath -Resolve
$targetDir = Join-Path $startupProjectDir $outputPath -Resolve | Convert-Path
$startupTargetFileName = GetOutputFileName $startupProject
$startupTargetPath = Join-Path $targetDir $startupTargetFileName
$targetFrameworkMoniker = GetProperty $startupProject.Properties 'TargetFrameworkMoniker'
Expand Down

0 comments on commit eac031c

Please sign in to comment.