Skip to content

Commit

Permalink
Fix build error with XAML
Browse files Browse the repository at this point in the history
Fixes #17
  • Loading branch information
kzu committed Nov 24, 2016
1 parent 3ff0168 commit b1cc373
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions src/GitInfo/build/GitInfo.targets
Original file line number Diff line number Diff line change
Expand Up @@ -656,12 +656,15 @@
</PropertyGroup>

<Target Name="GitThisAssembly" DependsOnTargets="$(GitThisAssemblyDependsOn)"
BeforeTargets="BuildOnlySettings" Condition="'$(GitThisAssembly)' == 'true'">
BeforeTargets="BuildOnlySettings" Condition="'$(GitThisAssembly)' == 'true'">

<ItemGroup>
<Compile Include="$(GitInfoThisAssemblyFile)" />
<_GeneratedCodeFiles Include="$(GitInfoThisAssemblyFile)" />
</ItemGroup>
<_CompileGitInfo Include="@(Compile)" Condition="'%(Identity)' == '$(GitInfoThisAssemblyFile)'" />
<!-- Don't add it twice if it's already there. -->
<Compile Include="$(GitInfoThisAssemblyFile)" Condition="'@(_CompileGitInfo)' == ''" />
<!-- For the double compilation happening with XAML projects. -->
<_GeneratedCodeFiles Include="$(GitInfoThisAssemblyFile)" />
</ItemGroup>

</Target>

Expand Down

0 comments on commit b1cc373

Please sign in to comment.