Skip to content

Commit 4b26bb9

Browse files
committed
Added build targets file
1 parent bb00ace commit 4b26bb9

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
2+
<PropertyGroup>
3+
<SemrushPropertyEditorFilesPath>
4+
$(MSBuildThisFileDirectory)..\App_Plugins\UmbracoCms.Integrations\SEO\Semrush\**\*.*
5+
</SemrushPropertyEditorFilesPath>
6+
</PropertyGroup>
7+
<Target Name="CopySemrushPropertyEditorAssets" BeforeTargets="Build">
8+
<ItemGroup>
9+
<SemrushPropertyEditorFiles Include="$(SemrushPropertyEditorFilesPath)" />
10+
</ItemGroup>
11+
<Message
12+
Text="Copying Semrush Property Editor files: $(SemrushPropertyEditorFilesPath) - #@(SemrushPropertyEditorFiles->Count()) files"
13+
Importance="high" />
14+
<Copy SourceFiles="@(SemrushPropertyEditorFiles)"
15+
DestinationFiles="@(SemrushPropertyEditorFiles->'$(MSBuildProjectDirectory)\App_Plugins\UmbracoCms.Integrations\SEO\Semrush\%(RecursiveDir)%(Filename)%(Extension)')"
16+
SkipUnchangedFiles="true" />
17+
18+
</Target>
19+
20+
<Target Name="ClearSemrushPropertyEditorAssets" BeforeTargets="Clean">
21+
<ItemGroup>
22+
<SemrushPropertyEditorDir
23+
Include="$(MSBuildProjectDirectory)\App_Plugins\UmbracoCms\SEO\Semrush\" />
24+
</ItemGroup>
25+
<Message Text="Clear old Semrush Property Editor data" Importance="high" />
26+
<RemoveDir Directories="@(SemrushPropertyEditorDir)" />
27+
</Target>
28+
29+
</Project>

0 commit comments

Comments
 (0)