Skip to content

Commit 4c7a14b

Browse files
authored
Merge pull request #25 from umbraco/feature/google-build-targets
Add build targets file
2 parents 02d5818 + 94b7778 commit 4c7a14b

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed
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+
<GoogleSearchConsolePropertyEditorFilesPath>
4+
$(MSBuildThisFileDirectory)..\App_Plugins\UmbracoCms.Integrations\SEO\GoogleSearchConsole\**\*.*
5+
</GoogleSearchConsolePropertyEditorFilesPath>
6+
</PropertyGroup>
7+
<Target Name="CopyGoogleSearchConsolePropertyEditorAssets" BeforeTargets="Build">
8+
<ItemGroup>
9+
<GoogleSearchConsolePropertyEditorFiles Include="$(GoogleSearchConsolePropertyEditorFilesPath)" />
10+
</ItemGroup>
11+
<Message
12+
Text="Copying Google Search Console Property Editor files: $(GoogleSearchConsolePropertyEditorFilesPath) - #@(GoogleSearchConsolePropertyEditorFiles->Count()) files"
13+
Importance="high" />
14+
<Copy SourceFiles="@(GoogleSearchConsolePropertyEditorFiles)"
15+
DestinationFiles="@(GoogleSearchConsolePropertyEditorFiles->'$(MSBuildProjectDirectory)\App_Plugins\UmbracoCms.Integrations\SEO\GoogleSearchConsole\%(RecursiveDir)%(Filename)%(Extension)')"
16+
SkipUnchangedFiles="true" />
17+
18+
</Target>
19+
20+
<Target Name="ClearGoogleSearchConsolePropertyEditorAssets" BeforeTargets="Clean">
21+
<ItemGroup>
22+
<GoogleSearchConsolePropertyEditorDir
23+
Include="$(MSBuildProjectDirectory)\App_Plugins\UmbracoCms\SEO\GoogleSearchConsole\" />
24+
</ItemGroup>
25+
<Message Text="Clear old Google Search Console Property Editor data" Importance="high" />
26+
<RemoveDir Directories="@(GoogleSearchConsolePropertyEditorDir)" />
27+
</Target>
28+
29+
</Project>

0 commit comments

Comments
 (0)