Skip to content

Commit c8e3bd3

Browse files
committed
Add *.targets file
1 parent bb9db1a commit c8e3bd3

File tree

1 file changed

+27
-0
lines changed

1 file changed

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

0 commit comments

Comments
 (0)