Skip to content

Commit

Permalink
Remove workaround for implicit DependentUpon
Browse files Browse the repository at this point in the history
  • Loading branch information
bricelam committed Sep 25, 2019
1 parent 83eda3c commit d7e0180
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions src/NuGet/EntityFramework/tools/EntityFramework6.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -293,12 +293,6 @@ function Enable-Migrations
$project.ProjectItems.AddFromFile($result.migration) | Out-Null
$resourcesProperties = $project.ProjectItems.AddFromFile($result.migrationResources).Properties
$project.ProjectItems.AddFromFile($result.migrationDesigner) | Out-Null

# HACK: Work around microsoft/msbuild#4488
if ($resourcesProperties | where Name -eq 'DependentUpon')
{
$resourcesProperties.Item('DependentUpon').Value = [IO.Path]::GetFileName($result.migration)
}
}
}

Expand Down Expand Up @@ -417,12 +411,6 @@ function Add-Migration
$DTE.ItemOperations.OpenFile($result.migration) | Out-Null
$resourcesProperties = $project.ProjectItems.AddFromFile($result.migrationResources).Properties
$project.ProjectItems.AddFromFile($result.migrationDesigner) | Out-Null

# HACK: Work around microsoft/msbuild#4488
if ($resourcesProperties | where Name -eq 'DependentUpon')
{
$resourcesProperties.Item('DependentUpon').Value = [IO.Path]::GetFileName($result.migration)
}
}

<#
Expand Down

0 comments on commit d7e0180

Please sign in to comment.