3
3
<ActiveCampaignPropertyEditorFilesPath >
4
4
$(MSBuildThisFileDirectory)..\App_Plugins\UmbracoCms.Integrations\Crm\ActiveCampaign\**\*.*
5
5
</ActiveCampaignPropertyEditorFilesPath >
6
+ <ActiveCampaignPropertyEditorIconPath >
7
+ $(MSBuildThisFileDirectory)..\App_Plugins\UmbracoCms.Integrations\backoffice\icons\*.*
8
+ </ActiveCampaignPropertyEditorIconPath >
6
9
</PropertyGroup >
10
+
7
11
<Target Name =" CopyActiveCampaignPropertyEditorAssets" BeforeTargets =" Build" >
8
12
<ItemGroup >
9
13
<ActiveCampaignPropertyEditorFiles Include =" $(ActiveCampaignPropertyEditorFilesPath)" />
16
20
SkipUnchangedFiles =" true" />
17
21
</Target >
18
22
23
+ <Target Name =" CopyActiveCampaignPropertyEditorIcon" BeforeTargets =" Build" >
24
+ <ItemGroup >
25
+ <ActiveCampaignPropertyEditorIcon Include =" $(ActiveCampaignPropertyEditorIconPath)" />
26
+ </ItemGroup >
27
+ <Message
28
+ Text=" Copying ActiveCampaign icon"
29
+ Importance=" high" />
30
+ <Copy SourceFiles =" @(ActiveCampaignPropertyEditorIcon)"
31
+ DestinationFolder =" $(MSBuildProjectDirectory)\App_Plugins\UmbracoCms.Integrations\backoffice\icons"
32
+ SkipUnchangedFiles =" true" />
33
+ </Target >
34
+
19
35
<Target Name =" ClearActiveCampaignPropertyEditorAssets" BeforeTargets =" Clean" >
20
36
<ItemGroup >
21
37
<ActiveCampaignPropertyEditorDir
22
38
Include=" $(MSBuildProjectDirectory)\App_Plugins\UmbracoCms\Crm\ActiveCampaign\" />
39
+ <ActiveCampaignPropertyEditorIconPath
40
+ Include=" $(MSBuildProjectDirectory)\App_Plugins\UmbracoCms\backoffice\icons\icon-activecampaign.svg" />
23
41
</ItemGroup >
24
42
<Message Text =" Clear old ActiveCampaign Property Editor data" Importance =" high" />
25
43
<RemoveDir Directories =" @(ActiveCampaignPropertyEditorDir)" />
44
+ <Delete Files =" @(ActiveCampaignPropertyEditorIconPath)" />
26
45
</Target >
27
46
28
47
</Project >
0 commit comments