Skip to content

Commit

Permalink
F add NestApprovedFiles
Browse files Browse the repository at this point in the history
fixes #319
  • Loading branch information
SimonCropp committed Nov 19, 2019
1 parent 788f4af commit 9e35320
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/ApprovalTests/build/ApprovalTests.targets
@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="utf-8"?>
<Project>
<ItemGroup Condition="$(NestApprovedFiles) == true">
<None Update="**\*.approved.*"
DependentUpon="$(
[System.String]::Copy('%(FileName)')
.SubString(
0,
$([System.String]::Copy('%(FileName)').IndexOf('.'))
)
)$(ProjectExt.Replace('proj', ''))" />
</ItemGroup>
</Project>
4 changes: 4 additions & 0 deletions src/ApprovalTests/buildMultiTargeting/ApprovalTests.targets
@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<Project>
<Import Project="..\build\ApprovalTests.targets"/>
</Project>

0 comments on commit 9e35320

Please sign in to comment.