-
Notifications
You must be signed in to change notification settings - Fork 18
/
ciBuild.proj
345 lines (276 loc) · 23 KB
/
ciBuild.proj
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="4.5">
<!-- Remember to run msbuild ciBuild.csproj /t:Restore first so the MSBuild extension package is installed from nuget -->
<Import Project="packages\MSBuild.Extension.Pack.1.9.1\build\net40\MSBuild.Extension.Pack.targets" Condition="Exists('packages\MSBuild.Extension.Pack.1.9.1\build\net40\MSBuild.Extension.Pack.targets')"/>
<PropertyGroup>
<BuildConfiguration>Release</BuildConfiguration>
<ProjectDirectory>$(MSBuildProjectDirectory)</ProjectDirectory>
<!-- Version -->
<Version Condition="'$(VERSION)' == ''">0.0.0.0</Version>
<Version Condition="'$(VERSION)' != ''">$(VERSION)</Version>
<VersionMajor>$(Version.Split('.')[0])</VersionMajor>
<VersionMinor>$(Version.Split('.')[1])</VersionMinor>
<VersionPatch>$(Version.Split('.')[2])</VersionPatch>
<VersionBuild>$(Version.Split('.')[3])</VersionBuild>
<PackageVersion>$(VersionMajor).$(VersionMinor).$(VersionPatch)</PackageVersion>
<!-- NuGet repository url -->
<NuGetRepositoryUrl></NuGetRepositoryUrl>
<!--Tools-->
<NuGet>"$(ProjectDirectory)\_tools\NuGet.exe"</NuGet>
<NuGetPackageDirectory>$(ProjectDirectory)\_NuGet</NuGetPackageDirectory>
<MsTestExe Condition="'$(MsTestExe)'=='' And Exists('$(MSBuildProgramFiles32)\Microsoft Visual Studio 14.0\Common7\IDE\MSTest.exe')">$(MSBuildProgramFiles32)\Microsoft Visual Studio 14.0\Common7\IDE\MSTest.exe</MsTestExe>
<MsTestExe Condition="'$(MsTestExe)'=='' And Exists('$(MSBuildProgramFiles32)\Microsoft Visual Studio 12.0\Common7\IDE\MSTest.exe')">$(MSBuildProgramFiles32)\Microsoft Visual Studio 12.0\Common7\IDE\MSTest.exe</MsTestExe>
<MsTestExe Condition="'$(MsTestExe)'=='' And Exists('$(MSBuildProgramFiles32)\Microsoft Visual Studio\2017\TestAgent\Common7\IDE\MSTest.exe')">$(MSBuildProgramFiles32)\Microsoft Visual Studio\2017\TestAgent\Common7\IDE\MSTest.exe</MsTestExe>
<MsTestExe Condition="'$(MsTestExe)'=='' And Exists('$(MSBuildProgramFiles32)\Microsoft Visual Studio\2017\Professional\Common7\IDE\MSTest.exe')">$(MSBuildProgramFiles32)\Microsoft Visual Studio\2017\Professional\Common7\IDE\MSTest.exe</MsTestExe>
<ExtensionsRoot>$(ProjectDirectory)\Dxa.CM.Extensions</ExtensionsRoot>
<ExtensionEditorsName>DXA.CM.Extensions.DXAResolver.Editors</ExtensionEditorsName>
<ExtensionModelsName>DXA.CM.Extensions.DXAResolver.Models</ExtensionModelsName>
<EditorsFolder>$(ExtensionsRoot)\$(ExtensionEditorsName)</EditorsFolder>
<ModelsFolder>$(ExtensionsRoot)\$(ExtensionModelsName)</ModelsFolder>
<ExtensionName Condition="'$(ExtensionName)' == ''">DxaResolver</ExtensionName>
<ExtensionsDistFolder Condition="'$(ExtensionsDistFolder)' == ''">$(ProjectDirectory)\dist\cms\extensions</ExtensionsDistFolder>
<PackageFolder>$(ExtensionsDistFolder)\$(ExtensionName)</PackageFolder>
<ExtensionPackageFolder>$(ExtensionsDistFolder)\ExtensionPackage</ExtensionPackageFolder>
<SupportedLanguage>(en|de|nl|fr|ja|es|zn-CH)</SupportedLanguage>
<ExcludeFiles>
$(EditorsFolder)\bin\**\*.*;
$(EditorsFolder)\obj\**\*.*;
$(EditorsFolder)\**\*.cs;
$(EditorsFolder)\**\*.csproj;
$(EditorsFolder)\**\*.csproj.user;
$(EditorsFolder)\**\Passolo\**;
$(EditorsFolder)\**\Properties\**;
$(ModelsFolder)\bin\**\*.*;
$(ModelsFolder)\obj\**\*.*;
$(ModelsFolder)\**\*.cs;
$(ModelsFolder)\**\*.csproj;
$(ModelsFolder)\**\*.csproj.user;
$(ModelsFolder)\**\Passolo\**;
$(ModelsFolder)\**\Properties\**;
</ExcludeFiles>
<ExtensionBinDist>$(PackageFolder)\bin</ExtensionBinDist>
</PropertyGroup>
<!-- ======================================================================================================================= -->
<!-- You should run msbuild with this target first to make sure all packages are installed before building everything else -->
<!-- ======================================================================================================================= -->
<Target Name="Restore">
<Message Text="Clearing NuGet cache..."/>
<Exec Command="$(NuGet) locals all -Clear" />
<Message Text="Restoring NuGet packages..."/>
<Exec Command="_tools\RestorePackages DxaContentManagement.sln" WorkingDirectory="$(ProjectDirectory)" />
</Target>
<!-- ======================================================================================================================= -->
<Target Name="Build">
<Message Text="Start build..." Importance="high" />
<CallTarget Targets="PrepareBuild"/>
<CallTarget Targets="RunBuild"/>
<CallTarget Targets="CreatePackages"/>
</Target>
<!-- ======================================================================================================================= -->
<Target Name="PrepareBuild">
<Message Text="Preparing build..." Importance="high" />
<Message Text="Setting Assembly Info"/>
<ItemGroup>
<AssemblyInfoFile Include="$(ProjectDirectory)\CommonAssemblyInfo.cs">
<Attributes>Normal</Attributes>
</AssemblyInfoFile>
</ItemGroup>
<Message Text="Setting Assembly Info @(AssemblyInfoFile)"/>
<MSBuild.ExtensionPack.Framework.DateAndTime TaskAction="Get" Format="yyyy">
<Output TaskParameter="Result" PropertyName="Year"/>
</MSBuild.ExtensionPack.Framework.DateAndTime>
<MSBuild.ExtensionPack.FileSystem.File TaskAction="SetAttributes" Files="@(AssemblyInfoFile)"/>
<MSBuild.ExtensionPack.Framework.AssemblyInfo
AssemblyInfoFiles="@(AssemblyInfoFile)"
AssemblyVersion="$(Version)"
AssemblyFileVersion="$(VersionMajor).$(VersionMinor).$(VersionPatch).$(VersionBuild)"
AssemblyCopyright="Copyright © 2014-$(Year) RWS Group"
SkipVersioning="false"
/>
<Message Text="Restoring NuGet packages for extensions..."/>
<Exec Command="_tools\RestorePackages Dxa.CM.Extensions\Dxa.CM.Extensions.sln" WorkingDirectory="$(ProjectDirectory)" />
</Target>
<!-- ======================================================================================================================= -->
<Target Name="RunBuild">
<Message Text="Running build commands..." Importance="high" />
<MSBuild Projects="$(ProjectDirectory)\Sdl.Web.DXAResolver\Sdl.Web.DXAResolver.csproj" Properties="Configuration=$(BuildConfiguration);Platform=AnyCPU" StopOnFirstFailure="true" />
<MSBuild Projects="$(ProjectDirectory)\Sdl.Web.Tridion.Templates\Sdl.Web.Tridion.Templates.csproj" Properties="Configuration=$(BuildConfiguration);Platform=AnyCPU" StopOnFirstFailure="true" />
<MSBuild Projects="$(ProjectDirectory)\Sdl.Web.Tridion.Templates.Legacy\Sdl.Web.Tridion.Templates.Legacy.csproj" Properties="Configuration=$(BuildConfiguration);Platform=AnyCPU" StopOnFirstFailure="true" />
<MSBuild Projects="$(ProjectDirectory)\Sdl.Web.Tridion.Templates.Tests\Sdl.Web.Tridion.Templates.Tests.csproj" Properties="Configuration=$(BuildConfiguration);Platform=AnyCPU" StopOnFirstFailure="true" />
<!-- Build all CM extensions -->
<MSBuild Projects="$(EditorsFolder)\DXA.CM.Extensions.DXAResolver.Editors.csproj" Targets="Clean;Build" Properties="Configuration=$(BuildConfiguration);Platform=AnyCPU" StopOnFirstFailure="true" />
<MSBuild Projects="$(ModelsFolder)\DXA.CM.Extensions.DXAResolver.Models.csproj" Targets="Clean;Build" Properties="Configuration=$(BuildConfiguration);Platform=AnyCPU" StopOnFirstFailure="true" />
</Target>
<Target Name="CreateDXAResolverExtensionDist">
<ItemGroup>
<ExtensionEditorsStaticFile Include="$(EditorsFolder)\**\*.*" Exclude="$(ExcludeFiles)"/>
<ExtensionModelsStaticFile Include="$(ModelsFolder)\**\*.*" Exclude="$(ExcludeFiles)"/>
<ExtensionEditorsBinFile Include="$(EditorsFolder)\bin\**\DXA.CM.Extensions.*dll" Exclude="
$(EditorsFolder)\bin\bin\;
$(EditorsFolder)\bin\*.config;
$(EditorsFolder)\bin\*.pdb;
"/>
<ExtensionModelsBinFile Include="$(ModelsFolder)\bin\**\DXA.CM.Extensions.*dll" Exclude="
$(ModelsFolder)\bin\bin\;
$(ModelsFolder)\bin\*.config;
$(ModelsFolder)\bin\*.pdb;
"/>
</ItemGroup>
<Message Text="Copying static files to $(PackageFolder)" Importance="high" />
<Copy SourceFiles="@(ExtensionEditorsStaticFile)" DestinationFolder="$(PackageFolder)\Editors\%(RecursiveDir)"/>
<Copy SourceFiles="@(ExtensionModelsStaticFile)" DestinationFolder="$(PackageFolder)\Models\%(RecursiveDir)"/>
<Message Text="Copying binaries to $(ExtensionBinDist)" Importance="high" />
<Copy SourceFiles="@(ExtensionEditorsBinFile);@(ExtensionModelsBinFile)" DestinationFolder="$(ExtensionBinDist)\%(RecursiveDir)"/>
</Target>
<Target Name="CreateDXAResolverExtensionPackage">
<ItemGroup>
<ExtensionEditorsStaticFile Include="$(EditorsFolder)\**\*.*" Exclude="$(ExcludeFiles)"/>
<ExtensionModelsStaticFile Include="$(ModelsFolder)\**\*.*" Exclude="$(ExcludeFiles)"/>
<ResolverFile Include="$(ProjectDirectory)\Sdl.Web.DXAResolver\bin\**\*.DXAResolver.dll" Exclude="$(ExcludeFiles)"/>
<ExtensionEditorsBinFile Include="$(EditorsFolder)\bin\**\DXA.CM.Extensions.*dll" Exclude="
$(EditorsFolder)\bin\bin\;
$(EditorsFolder)\bin\*.config;
$(EditorsFolder)\bin\*.pdb;
"/>
<ExtensionModelsBinFile Include="$(ModelsFolder)\bin\**\DXA.CM.Extensions.*dll" Exclude="
$(ModelsFolder)\bin\bin\;
$(ModelsFolder)\bin\*.config;
$(ModelsFolder)\bin\*.pdb;
"/>
<!-- Secure endpoint configuration in the model web.config -->
<ServicesSecureXMLElement Include="$(ExtensionPackageFolder)\Models\Web.config">
<XPath>/configuration/system.serviceModel/services/service</XPath>
<Name>endpoint</Name>
<KeyAttributeName>name</KeyAttributeName>
<KeyAttributeValue>ServicesSecure</KeyAttributeValue>
</ServicesSecureXMLElement>
<ServicesSecureXMLAttributes Include="$(ExtensionPackageFolder)\Models\Web.config">
<XPath>/configuration/system.serviceModel/services/service/endpoint[@name='ServicesSecure']</XPath>
<Name>address</Name>
<Value></Value>
</ServicesSecureXMLAttributes>
<ServicesSecureXMLAttributes Include="$(ExtensionPackageFolder)\Models\Web.config">
<XPath>/configuration/system.serviceModel/services/service/endpoint[@name='ServicesSecure']</XPath>
<Name>behaviorConfiguration</Name>
<Value>Tridion.Web.UI.ContentManager.WebServices.AspNetAjaxBehavior</Value>
</ServicesSecureXMLAttributes>
<ServicesSecureXMLAttributes Include="$(ExtensionPackageFolder)\Models\Web.config">
<XPath>/configuration/system.serviceModel/services/service/endpoint[@name='ServicesSecure']</XPath>
<Name>binding</Name>
<Value>webHttpBinding</Value>
</ServicesSecureXMLAttributes>
<ServicesSecureXMLAttributes Include="$(ExtensionPackageFolder)\Models\Web.config">
<XPath>/configuration/system.serviceModel/services/service/endpoint[@name='ServicesSecure']</XPath>
<Name>bindingConfiguration</Name>
<Value>Tridion.Web.UI.ContentManager.WebServices.WebHttpsBindingConfig</Value>
</ServicesSecureXMLAttributes>
<ServicesSecureXMLAttributes Include="$(ExtensionPackageFolder)\Models\Web.config">
<XPath>/configuration/system.serviceModel/services/service/endpoint[@name='ServicesSecure']</XPath>
<Name>contract</Name>
<Value>DXA.CM.Extensions.DXAResolver.Models.Interfaces.IServices</Value>
</ServicesSecureXMLAttributes>
</ItemGroup>
<Message Text="Cleaning zip folder" Importance="high" />
<RemoveDir Directories="$(ExtensionPackageFolder)" />
<Message Text="Copying static files to $(ExtensionPackageFolder)" Importance="high" />
<Copy SourceFiles="@(ExtensionEditorsStaticFile)" DestinationFolder="$(ExtensionPackageFolder)\Editors\%(RecursiveDir)"/>
<Copy SourceFiles="@(ExtensionModelsStaticFile)" DestinationFolder="$(ExtensionPackageFolder)\Models\%(RecursiveDir)"/>
<Message Text="Copying binaries to $(ExtensionPackageFolder)" Importance="high" />
<Copy SourceFiles="@(ExtensionEditorsBinFile)" DestinationFolder="$(ExtensionPackageFolder)\Editors\Assemblies\%(RecursiveDir)"/>
<Copy SourceFiles="@(ExtensionModelsBinFile)" DestinationFolder="$(ExtensionPackageFolder)\Models\Assemblies\%(RecursiveDir)"/>
<Copy SourceFiles="@(ResolverFile)" DestinationFolder="$(ExtensionPackageFolder)\Resolver"/>
<Copy SourceFiles="$(ProjectDirectory)\Resources\dxa.png" DestinationFolder="$(ExtensionPackageFolder)\Icons"/>
<Copy SourceFiles="$(ProjectDirectory)\Resources\manifest.json" DestinationFolder="$(ExtensionPackageFolder)"/>
<MSBuild.ExtensionPack.Xml.XmlFile TaskAction="AddElement" File="%(ServicesSecureXMLElement.Identity)" Key="%(ServicesSecureXMLElement.KeyAttributeName)" Value="%(ServicesSecureXMLElement.KeyAttributeValue)" Element="%(ServicesSecureXMLElement.Name)" XPath="%(ServicesSecureXMLElement.XPath)" />
<MSBuild.ExtensionPack.Xml.XmlFile TaskAction="AddAttribute" File="%(ServicesSecureXMLAttributes.Identity)" Key="%(ServicesSecureXMLAttributes.Name)" Value="%(ServicesSecureXMLAttributes.Value)" XPath="%(ServicesSecureXMLAttributes.XPath)" />
<Message Text="Creating extension zip package" Importance="high" />
<MSBuild.ExtensionPack.Compression.DNZip TaskAction="Create" CompressPath="$(ExtensionPackageFolder)" ZipFileName="$(ExtensionsDistFolder)\DXAResolver-$(PackageVersion).zip"/>
<Message Text="Cleaning zip folder" Importance="high" />
<RemoveDir Directories="$(ExtensionPackageFolder)" />
</Target>
<!-- ======================================================================================================================= -->
<Target Name="CreatePackages" Condition="'$(BuildConfiguration)' == 'Release'">
<Message Text="Creating NuGet packages in '$(NuGetPackageDirectory)' ..." Importance="high" />
<Message Text="Package Version: $(PackageVersion)" />
<Exec Command="$(NuGet) pack Sdl.Dxa.DataModel.nuspec -Version $(PackageVersion)" WorkingDirectory="$(NuGetPackageDirectory)" />
<Exec Command="$(NuGet) pack Sdl.Dxa.Tridion.Templates.nuspec -Version $(PackageVersion)" WorkingDirectory="$(NuGetPackageDirectory)" />
</Target>
<!-- ======================================================================================================================= -->
<Target Name="PublishPackages" Condition="'$(BuildConfiguration)' == 'Release' And '$(NuGetRepositoryUrl)' != ''">
<Message Text="Publishing NuGet packages to '$(NuGetRepositoryUrl)' ..." Importance="high" />
<Exec Command="$(NuGet) push Sdl.Dxa.DataModel.$(PackageVersion).nupkg -Source $(NuGetRepositoryUrl) -Verbosity detailed" WorkingDirectory="$(NuGetPackageDirectory)" />
</Target>
<!-- ======================================================================================================================= -->
<Target Name="Test" Condition="'$(BuildConfiguration)' == 'Release'">
<Message Text="Running unit tests..." />
<Exec Command='packages\OpenCover.4.6.519\tools\OpenCover.Console.exe -register:user "-target:$(MsTestExe)" "-targetargs:/testcontainer:Sdl.Web.Tridion.Templates.Tests\bin\$(BuildConfiguration)\Sdl.Web.Tridion.Templates.Tests.dll /testsettings:MsTest.testsettings /resultsfile:TestResults.trx" "-filter:+[Sdl.*]* -[*Test*]*" -output:CoverageReports\Coverage.xml"'/>
<Exec Command='packages\ReportGenerator.2.4.4.0\tools\ReportGenerator.exe "-reports:CoverageReports\Coverage.xml" "-targetdir:CoverageReports"'/>
</Target>
<!-- ========================================================================================================================== -->
<Target Name="Artifacts">
<Message Text="Generating artifacts ..." Importance="high" />
<PropertyGroup>
<DstFolder>$(ProjectDirectory)\dist\cms</DstFolder>
<CmContentFolder>$(ProjectDirectory)\cms\content</CmContentFolder>
<CmScriptsFolder>$(ProjectDirectory)\cms\scripts</CmScriptsFolder>
<LegacyTBBFolder>$(ProjectDirectory)\Sdl.Web.Tridion.Templates.Legacy\bin\$(BuildConfiguration)</LegacyTBBFolder>
<R2TBBFolder>$(ProjectDirectory)\Sdl.Web.Tridion.Templates.R2\bin\$(BuildConfiguration)</R2TBBFolder>
<LegacyTemplatesDll>Sdl.Web.Tridion.Templates.Legacy.merged.dll</LegacyTemplatesDll>
<R2TemplatesDll>Sdl.Web.Tridion.Templates.R2.merged.dll</R2TemplatesDll>
<!-- TBBs in export package. Note that if you re-export CM content you may need to adjust these IDs incase they change during export -->
<LegacyTemplatesTbb>2-80-2048.tbbasm</LegacyTemplatesTbb>
<R2TemplatesTbb>2-70-2048.tbbasm</R2TemplatesTbb>
</PropertyGroup>
<ItemGroup>
<ImportExportScripts Include="$(CmScriptsFolder)\..\ImportExport\**\*.*" />
</ItemGroup>
<RemoveDir Directories="$(DstFolder)" />
<!-- CM UI Extension -->
<CallTarget Targets="CreateDXAResolverExtensionDist"/>
<CallTarget Targets="CreateDXAResolverExtensionPackage"/>
<!-- Copy TBBs to dist folder -->
<Copy SourceFiles="$(LegacyTBBFolder)\$(LegacyTemplatesDll)" DestinationFolder="$(DstFolder)\TBBs"/>
<Copy SourceFiles="$(R2TBBFolder)\$(R2TemplatesDll)" DestinationFolder="$(DstFolder)\TBBs"/>
<!-- Copy TBBs to CM content folder -->
<Copy SourceFiles="$(LegacyTBBFolder)\$(LegacyTemplatesDll)" DestinationFolder="$(DstFolder)\tmp"/>
<Copy SourceFiles="$(R2TBBFolder)\$(R2TemplatesDll)" DestinationFolder="$(DstFolder)\tmp"/>
<!-- Update the CM content with the newly built TBBs -->
<Move SourceFiles="$(DstFolder)\tmp\$(LegacyTemplatesDll)" DestinationFiles="$(DstFolder)\tmp\$(LegacyTemplatesTbb)" />
<Copy SourceFiles="$(DstFolder)\tmp\$(LegacyTemplatesTbb)" DestinationFolder="$(CmContentFolder)\sites9\all-publications\Binaries" />
<Copy SourceFiles="$(DstFolder)\tmp\$(LegacyTemplatesTbb)" DestinationFolder="$(CmContentFolder)\sites9\framework-only\Binaries" />
<Copy SourceFiles="$(DstFolder)\tmp\$(LegacyTemplatesTbb)" DestinationFolder="$(CmContentFolder)\sites9\master-only\Binaries" />
<Move SourceFiles="$(DstFolder)\tmp\$(R2TemplatesDll)" DestinationFiles="$(DstFolder)\tmp\$(R2TemplatesTbb)" />
<Copy SourceFiles="$(DstFolder)\tmp\$(R2TemplatesTbb)" DestinationFolder="$(CmContentFolder)\sites9\all-publications\Binaries" />
<Copy SourceFiles="$(DstFolder)\tmp\$(R2TemplatesTbb)" DestinationFolder="$(CmContentFolder)\sites9\framework-only\Binaries" />
<Copy SourceFiles="$(DstFolder)\tmp\$(R2TemplatesTbb)" DestinationFolder="$(CmContentFolder)\sites9\master-only\Binaries" />
<!-- Copy custom resolver -->
<Copy SourceFiles="$(ProjectDirectory)\Sdl.Web.DXAResolver\bin\$(BuildConfiguration)\Sdl.Web.DXAResolver.dll" DestinationFolder="$(DstFolder)"/>
<Copy SourceFiles="$(CmScriptsFolder)\cms-customresolver.ps1" DestinationFolder="$(DstFolder)"/>
<!-- Copy cm content (web8) -->
<Message Text="Creating CM Content artifacts (web8)..." Importance="high" />
<MSBuild.ExtensionPack.Compression.DNZip TaskAction="Create" CompressPath="$(CmContentFolder)\web8\all-publications" ZipFileName="$(DstFolder)\tmp\all-publications.zip" RemoveRoot="$(CmContentFolder)\web8\all-publications" />
<MSBuild.ExtensionPack.Compression.DNZip TaskAction="Create" CompressPath="$(CmContentFolder)\web8\master-only" ZipFileName="$(DstFolder)\tmp\master-only.zip" RemoveRoot="$(CmContentFolder)\web8\master-only" />
<Copy SourceFiles="$(DstFolder)\tmp\all-publications.zip" DestinationFolder="$(DstFolder)\web8" />
<Copy SourceFiles="$(DstFolder)\tmp\master-only.zip" DestinationFolder="$(DstFolder)\web8" />
<Copy SourceFiles="$(CmContentFolder)\web8\permissions.xml" DestinationFolder="$(DstFolder)\web8" />
<!-- Copy cm content (sites9) -->
<Message Text="Creating CM Content artifacts (sites9)..." Importance="high" />
<MSBuild.ExtensionPack.Compression.DNZip TaskAction="Create" CompressPath="$(CmContentFolder)\sites9\all-publications" ZipFileName="$(DstFolder)\tmp\all-publications.zip" RemoveRoot="$(CmContentFolder)\sites9\all-publications" />
<MSBuild.ExtensionPack.Compression.DNZip TaskAction="Create" CompressPath="$(CmContentFolder)\sites9\framework-only" ZipFileName="$(DstFolder)\tmp\framework-only.zip" RemoveRoot="$(CmContentFolder)\sites9\framework-only"/>
<MSBuild.ExtensionPack.Compression.DNZip TaskAction="Create" CompressPath="$(CmContentFolder)\sites9\master-only" ZipFileName="$(DstFolder)\tmp\master-only.zip" RemoveRoot="$(CmContentFolder)\sites9\master-only"/>
<Copy SourceFiles="$(DstFolder)\tmp\all-publications.zip" DestinationFolder="$(DstFolder)\sites9" />
<Copy SourceFiles="$(DstFolder)\tmp\framework-only.zip" DestinationFolder="$(DstFolder)\sites9" />
<Copy SourceFiles="$(DstFolder)\tmp\master-only.zip" DestinationFolder="$(DstFolder)\sites9" />
<Copy SourceFiles="$(CmContentFolder)\sites9\permissions.xml" DestinationFolder="$(DstFolder)\sites9" />
<!-- Copy scripts -->
<Message Text="Copying scripts..." Importance="high" />
<Copy SourceFiles="$(CmScriptsFolder)\cms-import.ps1" DestinationFolder="$(DstFolder)"/>
<Copy SourceFiles="$(CmScriptsFolder)\cms-export.ps1" DestinationFolder="$(DstFolder)"/>
<Copy SourceFiles="$(CmScriptsFolder)\cms-export-permissions.ps1" DestinationFolder="$(DstFolder)"/>
<Copy SourceFiles="$(CmScriptsFolder)\cms-upgrade.ps1" DestinationFolder="$(DstFolder)"/>
<Copy SourceFiles="$(CmScriptsFolder)\ttm-prepare.ps1" DestinationFolder="$(DstFolder)"/>
<Copy SourceFiles="$(CmScriptsFolder)\DXA Application Data Definition.xml" DestinationFolder="$(DstFolder)"/>
<Copy SourceFiles="@(ImportExportScripts)" DestinationFolder="$(DstFolder)\..\ImportExport\%(RecursiveDir)"/>
<RemoveDir Directories="$(DstFolder)\tmp" />
</Target>
</Project>