Skip to content

Commit

Permalink
Automatically include *.edmx files on SDK-style projects
Browse files Browse the repository at this point in the history
Fixes #891
  • Loading branch information
bricelam committed Jul 30, 2019
1 parent 15aeaf9 commit aee8898
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/NuGet/EntityFramework/build/EntityFramework.props
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<Project>
<ItemGroup Condition="'$(EnableDefaultItems)' == 'True' And '$(EnableDefaultEntityDeployItems)' == 'True'">
<EntityDeploy Include="**/*.edmx" Exclude="$(DefaultItemExcludes);$(DefaultExcludesInProjectFolder)" />
<None Remove="**/*.edmx" Condition="'$(EnableDefaultNoneItems)' == 'True'" />
</ItemGroup>
</Project>
4 changes: 4 additions & 0 deletions src/NuGet/EntityFramework/build/EntityFramework.targets
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">

<PropertyGroup>
<EnableDefaultEntityDeployItems Condition="'$(EnableDefaultEntityDeployItems)' == ''">True</EnableDefaultEntityDeployItems>
</PropertyGroup>

<!-- This .targets file can be used by updating Microsoft.Common.targets to
include the line below (as the last import element just before the end project tag)
<Import Project="$(MSBuildBinPath)\Microsoft.Data.Entity.targets" Condition="Exists('$(MSBuildBinPath)\Microsoft.Data.Entity.targets')"/>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<Project>
<Import Project="..\build\EntityFramework.props" />
</Project>

0 comments on commit aee8898

Please sign in to comment.