Skip to content

Commit

Permalink
Don't delete resource folder while clean/rebuild (#424)
Browse files Browse the repository at this point in the history
* Conditionally delete resource folder

* Removing Cleaning up of empty resource folders
  • Loading branch information
jayaranigarg committed May 23, 2018
1 parent 1b1b3fa commit 2679fe7
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 16 deletions.
8 changes: 0 additions & 8 deletions src/Adapter/Build/Desktop/MSTest.TestAdapter.targets
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,4 @@
</ItemGroup>
</Target>

<!-- This is required because an empty resource folder is left even though the files within are cleaned up. -->
<Target Name="CleanupMSTestV2ResourceFolders" AfterTargets="AfterClean" Condition="$(EnableMSTestV2CopyResources) == 'true'" DependsOnTargets="GetMSTestV2CultureHierarchy">
<ItemGroup>
<ResourceDirectories Include="$(TargetDir)%(CurrentUICultureHierarchy.Identity)" />
</ItemGroup>
<!-- RemoveDir does not throw if the folder does not exist. Continue on error - In any case do not fail build if this task fails(Warn and move on).-->
<RemoveDir Directories="@(ResourceDirectories)" ContinueOnError="true"/>
</Target>
</Project>
8 changes: 0 additions & 8 deletions src/Adapter/Build/Universal/MSTest.TestAdapter.targets
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,4 @@
</ItemGroup>
</Target>

<!-- This is required because an empty resource folder is left even though the files within are cleaned up. -->
<Target Name="CleanupMSTestV2ResourceFolders" AfterTargets="AfterClean" Condition="$(EnableMSTestV2CopyResources) == 'true'" DependsOnTargets="GetMSTestV2CultureHierarchy">
<ItemGroup>
<ResourceDirectories Include="$(TargetDir)%(CurrentUICultureHierarchy.Identity)" />
</ItemGroup>
<!-- RemoveDir does not throw if the folder does not exist. Continue on error - In any case do not fail build if this task fails(Warn and move on).-->
<RemoveDir Directories="@(ResourceDirectories)" ContinueOnError="true"/>
</Target>
</Project>

0 comments on commit 2679fe7

Please sign in to comment.