forked from eXpandFramework/eXpand
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Xpand.build
462 lines (410 loc) · 31.9 KB
/
Xpand.build
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
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
<?xml version="1.0" encoding="utf-8" ?>
<Project DefaultTargets="integrate" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<ExtensionTasksPath Condition="'$(ExtensionTasksPath)' == ''">$(MSBuildProjectDirectory)\Resource\Build\ExtensionPack\</ExtensionTasksPath>
<TypeMockLocation>Resource\TypeMock\</TypeMockLocation>
</PropertyGroup>
<Import Project="Resource\Build\MSBuild.Community.Tasks.targets" />
<Import Project="Resource\TypeMock\TypeMock.MSBuild.Tasks"/>
<!--
<Import Project="Resource\Build\NCoverExplorer.MSBuildTasks.targets"/>
<Import Project="Resource\Build\Microsoft.StyleCop.Targets" />
-->
<!-- Main build entry file (extends development builds)-->
<PropertyGroup>
<!--
Primary configuration properties (override them via command line if needed
-->
<BuildPath Condition="$(BuildPath)==''">$(MSBuildProjectDirectory)\Build</BuildPath>
<Version Condition="$(Version)==''">0.0.0.0</Version>
<Configuration Condition="$(Configuration)==''">Release</Configuration>
<ArtifactDirectory Condition="$(ArtifactDirectory)==''">$(BuildPath)\Artifact</ArtifactDirectory>
<PackageDirectory Condition="$(PackageDirectory)==''">$(BuildPath)\_Package\$(Version)</PackageDirectory>
<DeploymentFolder Condition="$(DeploymentFolder)==''">$(BuildPath)\_DeploymentFolder\</DeploymentFolder>
<InstallerFolder Condition="$(InstallerFolder)==''">$(BuildPath)\Installer</InstallerFolder>
<XpandDesignExperiencePath>$(MSBuildProjectDirectory)\Xpand.DesignExperience</XpandDesignExperiencePath>
<!--
Derived configuration properties
-->
<ProjectName>Xpand</ProjectName>
<TestPath>$(BuildPath)\Test</TestPath>
<TempPath>$(BuildPath)\Temp</TempPath>
<XpandPath>$(MSBuildProjectDirectory)\Xpand.DLL</XpandPath>
<SourceExclusions>**\.svn\**\*.*;**\_svn\**\*.*;**\*.user;**\*.suo;**\*.db;**\bin\**\*.*;**\obj\**\*.*;.hg\**\*.*;_hg\**\*.*;.git\**\*.*</SourceExclusions>
</PropertyGroup>
<ItemGroup>
<ProjectFiles Include="
.\Xpand\Xpand.Utils\Xpand.Utils.csproj;
.\Xpand\Xpand.ExpressApp.Modules\EmailTemplateEngine\Xpand.EmailTemplateEngine.csproj;
.\Xpand\Xpand.Xpo\Xpand.Xpo.csproj;
.\Xpand\Xpand.Persistent\Xpand.Persistent.Base\Xpand.Persistent.Base.csproj;
.\Xpand\Xpand.ExpressApp\Xpand.ExpressApp\Xpand.ExpressApp.csproj;
.\Xpand\Xpand.ExpressApp\Xpand.ExpressApp.Win\Xpand.ExpressApp.Win.csproj;
.\Xpand\Xpand.ExpressApp\Xpand.ExpressApp.Web\Xpand.ExpressApp.Web.csproj;
.\Xpand\Xpand.ExpressApp.Modules\Security\Xpand.ExpressApp.Security.csproj;
.\Xpand\Xpand.ExpressApp.Modules\Security.Win\Xpand.ExpressApp.Security.Win.csproj;
.\Xpand\Xpand.ExpressApp.Modules\Validation\Xpand.ExpressApp.Validation.csproj;
.\Xpand\Xpand.ExpressApp.Modules\Validation.Win\Xpand.ExpressApp.Validation.Win.csproj;
.\Xpand\Xpand.ExpressApp.Modules\Validation.Web\Xpand.ExpressApp.Validation.Web.csproj;
.\Xpand\Xpand.ExpressApp.Modules\Logic\Xpand.ExpressApp.Logic.csproj;
.\Xpand\Xpand.ExpressApp.Modules\Logic.Win\Xpand.ExpressApp.Logic.Win.csproj;
.\Xpand\Xpand.ExpressApp.Modules\Logic.Conditional\Xpand.ExpressApp.Logic.Conditional.csproj;
.\Xpand\Xpand.ExpressApp.Modules\MemberLevelSecurity\Xpand.ExpressApp.MemberLevelSecurity.csproj;
.\Xpand\Xpand.ExpressApp.Modules\MemberLevelSecurity.Win\Xpand.ExpressApp.MemberLevelSecurity.Win.csproj;
.\Xpand\Xpand.ExpressApp.Modules\AdditionalViewControlsProvider\Xpand.ExpressApp.AdditionalViewControlsProvider.csproj;
.\Xpand\Xpand.ExpressApp.Modules\AdditionalViewControlsProvider.Win\Xpand.ExpressApp.AdditionalViewControlsProvider.Win.csproj;
.\Xpand\Xpand.ExpressApp.Modules\AdditionalViewControlsProvider.Web\Xpand.ExpressApp.AdditionalViewControlsProvider.Web.csproj;
.\Xpand\Xpand.ExpressApp.Modules\ModelDifference\Xpand.ExpressApp.ModelDifference.csproj;
.\Xpand\Xpand.ExpressApp.Modules\ModelDifference.Win\Xpand.ExpressApp.ModelDifference.Win.csproj;
.\Xpand\Xpand.ExpressApp.Modules\ModelDifference.Web\Xpand.ExpressApp.ModelDifference.Web.csproj;
.\Xpand\Xpand.ExpressApp.Modules\FilterDataStore\Xpand.ExpressApp.FilterDataStore.csproj;
.\Xpand\Xpand.ExpressApp.Modules\FilterDataStore.Win\Xpand.ExpressApp.FilterDataStore.Win.csproj;
.\Xpand\Xpand.ExpressApp.Modules\FilterDataStore.Web\Xpand.ExpressApp.FilterDataStore.Web.csproj;
.\Xpand\Xpand.ExpressApp.Modules\ArtifactState\Xpand.ExpressApp.ArtifactState.csproj;
.\Xpand\Xpand.ExpressApp.Modules\ConditionalActionState\Xpand.ExpressApp.ConditionalActionState.csproj;
.\Xpand\Xpand.ExpressApp.Modules\ConditionalControllerState\Xpand.ExpressApp.ConditionalControllerState.csproj;
.\Xpand\Xpand.ExpressApp.Modules\ModelArtifactState\Xpand.ExpressApp.ModelArtifactState.csproj;
.\Xpand\Xpand.ExpressApp.Modules\WizardUI.Win\Xpand.ExpressApp.WizardUI.Win.csproj;
.\Xpand\Xpand.ExpressApp.Modules\ViewVariants\Xpand.ExpressApp.ViewVariants.csproj;
.\Xpand\Xpand.ExpressApp.Modules\MasterDetail\Xpand.ExpressApp.MasterDetail.csproj;
.\Xpand\Xpand.ExpressApp.Modules\MasterDetail.Win\Xpand.ExpressApp.MasterDetail.Win.csproj;
.\Xpand\Xpand.ExpressApp.Modules\TreeListEditors\Xpand.ExpressApp.TreeListEditors.csproj;
.\Xpand\Xpand.ExpressApp.Modules\TreeListEditors.Web\Xpand.ExpressApp.TreeListEditors.Web.csproj;
.\Xpand\Xpand.ExpressApp.Modules\TreeListEditors.Win\Xpand.ExpressApp.TreeListEditors.Win.csproj;
.\Xpand\Xpand.ExpressApp.Modules\ExceptionHandling\Xpand.ExpressApp.ExceptionHandling.csproj;
.\Xpand\Xpand.ExpressApp.Modules\ExceptionHandling.Win\Xpand.ExpressApp.ExceptionHandling.Win.csproj;
.\Xpand\Xpand.ExpressApp.Modules\ExceptionHandling.Web\Xpand.ExpressApp.ExceptionHandling.Web.csproj;
.\Xpand\Xpand.ExpressApp.Modules\WorldCreator\Xpand.ExpressApp.WorldCreator.csproj;
.\Xpand\Xpand.ExpressApp.Modules\WorldCreator.SqlDBMapper\Xpand.ExpressApp.WorldCreator.SqlDBMapper.csproj;
.\Xpand\Xpand.ExpressApp.Modules\WorldCreator.DBMapper\Xpand.ExpressApp.WorldCreator.DBMapper.csproj;
.\Xpand\Xpand.ExpressApp.Modules\WorldCreator.Win\Xpand.ExpressApp.WorldCreator.Win.csproj;
.\Xpand\Xpand.ExpressApp.Modules\WorldCreator.Web\Xpand.ExpressApp.WorldCreator.Web.csproj;
.\Xpand\Xpand.ExpressApp.Modules\IO\Xpand.ExpressApp.IO.csproj;
.\Xpand\Xpand.ExpressApp.Modules\IO.Win\Xpand.ExpressApp.IO.Win.csproj;
.\Xpand\Xpand.ExpressApp.Modules\IO.Web\Xpand.ExpressApp.IO.Web.csproj;
.\Xpand\Xpand.ExpressApp.Modules\Dashboard\Xpand.ExpressApp.Dashboard.csproj;
.\Xpand\Xpand.ExpressApp.Modules\Dashboard.Win\Xpand.ExpressApp.Dashboard.Win.csproj;
.\Xpand\Xpand.ExpressApp.Modules\PivotChart\Xpand.ExpressApp.PivotChart.csproj;
.\Xpand\Xpand.ExpressApp.Modules\PivotChart.Win\Xpand.ExpressApp.PivotChart.Win.csproj;
.\Xpand\Xpand.ExpressApp.Modules\PivotChart.Web\Xpand.ExpressApp.PivotChart.Web.csproj;
.\Xpand\Xpand.ExpressApp.Modules\PivotGrid.Win\Xpand.ExpressApp.PivotGrid.Win.csproj;
.\Xpand\Xpand.ExpressApp.Modules\Chart.Win\Xpand.ExpressApp.Chart.Win.csproj;
.\Xpand\Xpand.ExpressApp.Modules\Scheduler.Win\Xpand.ExpressApp.Scheduler.Win.csproj;
.\Xpand\Xpand.ExpressApp.Modules\Reports.Win\Xpand.ExpressApp.Reports.Win.csproj;
.\Xpand\Xpand.ExpressApp.Modules\NCarousel\Xpand.NCarousel.csproj;
.\Xpand\Xpand.ExpressApp.Modules\NCarousel.Web\Xpand.ExpressApp.NCarousel.Web.csproj;
.\Xpand\Xpand.ExpressApp.Modules\Thumbnail.Web\Xpand.ExpressApp.Thumbnail.Web.csproj;
.\Xpand\Xpand.ExpressApp.Modules\ConditionalDetailViews\Xpand.ExpressApp.ConditionalDetailViews.csproj;
.\Xpand\Xpand.ExpressApp.Modules\JobScheduler\Xpand.ExpressApp.JobScheduler.csproj;
.\Xpand\Xpand.Persistent\Xpand.Persistent.BaseImpl\Xpand.Persistent.BaseImpl.csproj;
.\Xpand\Xpand.ExpressApp.Modules\JobScheduler.Jobs\Xpand.ExpressApp.JobScheduler.Jobs.csproj;
.\Xpand\Xpand.ExpressApp.Modules\Quartz.Server\Xpand.Quartz.Server.csproj;
.\Xpand\Xpand.ExpressApp.Modules\ImportWizard\Xpand.ExpressApp.ImportWizard.csproj;
.\Xpand\Xpand.ExpressApp.Modules\ImportWizard.Win\Xpand.ExpressApp.ImportWizard.Win.csproj;
.\Xpand\Xpand.ExpressApp.Modules\Workflow\Xpand.ExpressApp.Workflow.csproj;
.\Xpand\Xpand.ExpressApp.Modules\StateMachine\Xpand.ExpressApp.StateMachine.csproj;
.\ToolBoxCreator\Xpand.ToolBoxCreator.csproj;
.\Demos\FeatureCenter\FeatureCenter.Base\FeatureCenter.Base.csproj;
.\Demos\FeatureCenter\FeatureCenter.Module\FeatureCenter.Module.csproj;
.\Demos\FeatureCenter\FeatureCenter.Module.Win\FeatureCenter.Module.Win.csproj;
.\Demos\FeatureCenter\FeatureCenter.Module.Web\FeatureCenter.Module.Web.csproj;
.\Demos\FeatureCenter\FeatureCenter.Win\FeatureCenter.Win.csproj;
.\Demos\FeatureCenter\FeatureCenter.Web\FeatureCenter.Web.csproj;
.\Demos\FeatureCenter\ExternalApplication\ExternalApplication.Module.Win\ExternalApplication.Module.Win.csproj;
.\Demos\FeatureCenter\ExternalApplication\ExternalApplication.Win\ExternalApplication.Win.csproj;
.\Demos\SecurityDemo\SecurityDemo.sln;
.\Demos\XVideoRental\XVideoRental.Module.Win\XVideoRental.Module.Win.csproj;
.\Demos\XVideoRental\XVideoRental.Win\XVideoRental.Win.csproj;
.\Demos\E4035-Middle Tier\E4035.sln;
.\Demos\Modules\AdditionalViewControlProvider\AdditionalViewControlProviderTester.sln;
.\Demos\Modules\Chart\ChartTester.sln;
.\Demos\Modules\ConditionalDetailViews\ConditionalDetailViewsTester.sln;
.\Demos\Modules\ExceptionHanding\ExceptionHandingTester.sln;
.\Demos\Modules\FilterDataStore\FilterDataStoreTester.sln;
.\Demos\Modules\ImportWizard\ImportWizardTester.sln;
.\Demos\Modules\IO\IOTester.sln;
.\Demos\Modules\JobsScheduler\JobsSchedulerTester.sln;
.\Demos\Modules\MasterDetail\MasterDetailTester.sln;
.\Demos\Modules\ModelArtifactState\ModelArtifactStateTester.sln;
.\Demos\Modules\ModelDifference\ModelDifferenceTester.sln;
.\Demos\Modules\NCarousel\NCarouselTester.sln;
.\Demos\Modules\Dashboard\DashboardTester.sln;
.\Demos\Modules\PivotChart\PivotChartTester.sln;
.\Demos\Modules\Reports\ReportsTester.sln;
.\Demos\Modules\Scheduler\SchedulerTester.sln;
.\Demos\Modules\Security\SecurityTester.sln;
.\Demos\Modules\StateMachine\StateMachineTester.sln;
.\Demos\Modules\Thumbnail\ThumbnailTester.sln;
.\Demos\Modules\TreeListEditors\TreeListEditorsTester.sln;
.\Demos\Modules\Validation\ValidationTester.sln;
.\Demos\Modules\ViewVariants\ViewVariantsTester.sln;
.\Demos\Modules\WizardUI\WizardUITester.sln;
.\Demos\Modules\Workflow\WorkflowTester.sln;
.\Demos\Modules\WorldCreator\WorldCreatorTester.sln;
.\Demos\Modules\XpandSystem\XpandSystemTester.sln;
.\Xpand.Addins\Xpand.ExpressApp.ModelEditor\Xpand.ExpressApp.ModelEditor.csproj;
.\Xpand.Addins\XpandAddIns.csproj;
.\Xpand\Xpand.Tests\Xpand.Tests\Xpand.Tests.csproj;
" />
</ItemGroup>
<ItemGroup>
<Tokens Include="SourcePackage">
<ReplacementValue>$(ProjectName)-Source-$(Version).zip</ReplacementValue>
</Tokens>
<Tokens Include="BinaryPackage">
<ReplacementValue>$(ProjectName)-Lib-$(Version).zip</ReplacementValue>
</Tokens>
<Tokens Include="Version">
<ReplacementValue>$(Version)</ReplacementValue>
</Tokens>
</ItemGroup>
<UsingTask TaskName="MSBuild.ExtensionPack.FileSystem.File" AssemblyFile="Resource\build\ExtensionPack\MSBuild.ExtensionPack.dll" />
<UsingTask TaskName="Mash2.MSBuild.Tasks.Twitter" AssemblyFile="Resource\build\Mash2\Mash2.MSBuild.Tasks.dll" />
<Target Name="ReplaceKey">
<CreateItem Include="**\*.csproj;**\*.config;**\*.skin" Exclude=".git;Build;">
<Output ItemName="_filesToChange" TaskParameter="Include"/>
</CreateItem>
<MSBuild.ExtensionPack.FileSystem.File TaskAction="FilterByContent" RegexPattern="c52ffed5d5ff0958" Files="@(_filesToChange)">
<Output TaskParameter="IncludedFiles" ItemName="FilesToParse"/>
<Output TaskParameter="IncludedFileCount" PropertyName="FilesToParseCount"/>
</MSBuild.ExtensionPack.FileSystem.File>
<MSBuild.ExtensionPack.FileSystem.File TaskAction="Replace"
Condition="$(FilesToParseCount) > 0"
RegexPattern="c52ffed5d5ff0958" Replacement="b88d1754d700e49a" Files="@(FilesToParse)"/>
</Target>
<!--
Solution redirects. Every VS project normally knows how to support these targets
-->
<Target Name="Build" DependsOnTargets="ReplaceKey">
<Message Text="@(ProjectFiles->'%(Filename)', '%0D%0A')" />
<MSBuild Projects="@(ProjectFiles)" Targets="Build"
Properties="Configuration=$(Configuration);BuildConstants=NET35;OutputPath=$(XpandPath)" />
</Target>
<Target Name="Clean">
<MSBuild Projects="@(ProjectFiles)" Targets="Clean" Properties="Configuration=$(Configuration)"/>
<CreateItem Include="**/Debug/**/*.*;**/Release/**/*.*">
<Output ItemName="_binaryFiles" TaskParameter="Include"/>
</CreateItem>
<Delete Files="@(_binaryFiles)" TreatErrorsAsWarnings="true"/>
<RemoveDir Directories="$(BuildPath);$(XpandPath)" />
</Target>
<Target Name="Copy" DependsOnTargets="Build">
<MakeDir Directories="$(BuildPath);$(TempPath)"/>
<!--Library
Resource\Library\*.*
-->
<CreateItem Include="$(XpandPath)\*.*;" Exclude="$(XpandPath)\*.locked" >
<Output ItemName="files" TaskParameter="Include"/>
</CreateItem>
<Copy SourceFiles="@(files)" DestinationFolder="$(TempPath)" />
<CreateItem Include="Xpand.Key\Xpand.snk;" ><!--Exclude="$(XpandPath)\*.locked" -->
<Output ItemName="keyFiles" TaskParameter="Include"/>
</CreateItem>
<Copy SourceFiles="@(keyFiles)" DestinationFolder="$(BuildPath)\Xpand.Key" />
<!-- TODO: All Tests
<CreateItem Include="Xpand\Xpand.Tests\**\bin\$(Configuration)\*.*" Exclude="Xpand\Xpand.Tests\**\bin\$(Configuration)\*.xml;Xpand\Xpand.Tests\**\bin\$(Configuration)\*.pdb;">
<Output ItemName="TestFiles" TaskParameter="Include"/>
</CreateItem>
<Copy SourceFiles="@(TestFiles)" DestinationFolder="$(TestPath)" />
-->
</Target>
<Target Name="Test" DependsOnTargets="Clean;Build;Copy" >
<TypeMockStart/>
<Exec ContinueOnError="false" Command="Resource\Machine.Specifications\mspec-clr4.exe Build\Temp\Xpand.Tests.dll"/>
<TypeMockStop/>
</Target>
<Target Name="Config">
<Message Text="This sub-solution does not need configuration" />
</Target>
<Target Name="Report" DependsOnTargets="Clean;Build;Copy">
<MakeDir Directories="$(ArtifactDirectory)" />
<CreateItem Include="$(XpandPath)\Xpand.*.dll;" >
<Output ItemName="fxAssemblies" TaskParameter="Include"/>
</CreateItem>
<!--
Disabled for now
<FxCop
TargetAssemblies="@(fxAssemblies)"
ToolPath="Resource/Tool/FxCop"
ProjectFile="$(ProjectName).FxCop"
AnalysisReportFileName="$(ArtifactDirectory)/fxcop.html"
ApplyOutXsl="True"
ContinueOnError="True"
FailOnError="False"
OutputXslFileName="Resource/Tool/FxCop/Xml/FxCopReport.xsl"
/>
<FxCop
TargetAssemblies="@(fxAssemblies)"
ToolPath="Resource/Tool/FxCop"
ProjectFile="$(ProjectName).FxCop"
AnalysisReportFileName="$(ArtifactDirectory)/fxcop-report.xml"
/>
<Message Text="##teamcity[importData id='FxCop' file='$(ArtifactDirectory)/fxcop-report.xml']" />
-->
</Target>
<Target Name="Integrate" DependsOnTargets="Clean;Test;Report;" />
<!--For Continuous integration and automated releases-->
<Target Name="Release" DependsOnTargets="Clean;_Version;Build;Report;" />
<Target Name="Installer">
<MakeDir Directories="$(InstallerFolder);" />
<CreateItem Include="$(XpandPath)\*.dll;" Exclude="$(XpandPath)\Xpand.Tests.dll;$(XpandPath)\DevExpress.*;$(XpandPath)\FeatureCenter*;$(XpandPath)\*Tester*;$(XpandPath)\SecurityDemo*;$(XpandPath)\ExternalApplication.Module.Win.dll;$(XpandPath)\Machine.Specifications.dll;$(XpandPath)\Topshelf.dll;$(XpandPath)\XVideoRental.Module.Win.dll" >
<Output ItemName="files" TaskParameter="Include"/>
</CreateItem>
<Copy SourceFiles="@(files)" DestinationFolder="$(InstallerFolder)\Xpand.DLL" />
<CreateItem Include="$(XpandDesignExperiencePath)\**\*.*">
<Output ItemName="XpandDesignExperienceFiles" TaskParameter="Include"/>
</CreateItem>
<Copy SourceFiles="@(XpandDesignExperienceFiles)" DestinationFolder="$(InstallerFolder)\Xpand.DesignExperience\%(XpandDesignExperienceFiles.SubFolder)%(XpandDesignExperienceFiles.RecursiveDir)" />
<!-- Source.zip -->
<CreateItem Include="**\*.*" Exclude="Resource\Tool\**\*.*;Build\**\*.*;Resource\Build\Profile.Local\*.*;$(SourceExclusions);**\**\DevExpress*.dll;Xpand.DLL\**\*.*;**\*.docstates;**\*teamcity*;**\*typemock*">
<Output ItemName="_SourceFiles" TaskParameter="Include" />
</CreateItem>
<Zip Files="@(_SourceFiles)" ZipFileName="$(InstallerFolder)\Source.zip" Flatten="false" />
<Exec Command="Resource\Tool\NSIS\makensis.exe /DVERSION=$(Version) Xpand.nsi" />
<CreateItem Include="setup.exe" ><!--Exclude="$(XpandPath)\*.locked" -->
<Output ItemName="setupFiles" TaskParameter="Include"/>
</CreateItem>
<Copy
SourceFiles="@(setupFiles)"
DestinationFiles="$(PackageDirectory)\eXpandFramework-$(Version).exe"
/>
<Delete Files="@(setupFiles)" />
</Target>
<Target Name="DeployUpdate" >
<MakeDir Directories="$(DeploymentFolder);" />
<CreateItem Include="$(PackageDirectory)\*.*;">
<Output ItemName="deploymentFiles" TaskParameter="Include" />
</CreateItem>
<Copy SourceFiles="@(deploymentFiles)" DestinationFolder="$(DeploymentFolder)\%(deploymentFiles.SubFolder)%(deploymentFiles.RecursiveDir)" />
<Time Format="yyyy-MM-dd HH:mm" >
<Output TaskParameter="FormattedTime" PropertyName="BuildTime" />
</Time>
<!-- Hack because buildtime is dynamically
http://social.msdn.microsoft.com/Forums/en-US/msbuild/thread/2c910802-e8c9-4bf1-bdb1-ef7835011eeb
-->
<Time Format="yyyy-MM-dd HH:mm" >
<Output TaskParameter="FormattedTime" PropertyName="BuildTime" />
</Time>
<CreateItem Include="BuildTime" AdditionalMetadata="ReplacementValue=$(BuildTime)">
<Output TaskParameter="Include" ItemName="BuildTimeToken"/>
</CreateItem>
<CreateItem Include="@(Tokens);@(BuildTimeToken);">
<Output TaskParameter="Include" ItemName="AllTokens"/>
</CreateItem>
<!--Index-->
<Copy SourceFiles="Resource\Template\index.template" DestinationFolder="$(TempPath)" />
<TemplateFile Template="$(TempPath)\index.template" OutputFile="index.out" Tokens="@(AllTokens)" />
<Copy SourceFiles="$(TempPath)\index.out" DestinationFiles="$(DeploymentFolder)\index.htm" />
</Target>
<Target Name="Distrib" >
<MakeDir Directories="$(PackageDirectory);" />
<!-- Source.zip -->
<CreateItem Include="**\*.*" Exclude="Resource\Tool\**\*.*;Build\**\*.*;Resource\Build\Profile.Local\*.*;$(SourceExclusions);**\**\DevExpress*.dll;Xpand.DLL\**\*.*;**\*.docstates;**\*teamcity*;**\*typemock*">
<Output ItemName="_SourceFiles" TaskParameter="Include" />
</CreateItem>
<Zip Files="@(_SourceFiles)" ZipFileName="$(PackageDirectory)\$(ProjectName)-Source-$(Version).zip" Flatten="false" />
<!-- Lib.zip -->
<CreateItem Include="$(TempPath)\*.*;" Exclude="$(TempPath)\DevExpress*;$(TempPath)\EmailModule*">
<Output ItemName="_libFiles" TaskParameter="Include" />
</CreateItem>
<Zip Files="@(_libFiles)" ZipFileName="$(PackageDirectory)\$(ProjectName)-Lib-$(Version).zip" Flatten="true" />
<!--
Condition="$(DeployUpdate)=='true'"
-->
<CallTarget Targets="DeployUpdate" />
</Target>
<Target Name="Twitter" >
<Mash2.MSBuild.Tasks.Twitter Message="new @expandframework v$(Version): http://goo.gl/g9wRy @DevExpress_XAF #dotnet #opensource #software #LOB #business #application #framework"
ConsumerKey="$(TwitterConsumerKey)"
ConsumerSecret="$(TwitterConsumerSecret)"
AccessToken="$(TwitterAccessToken)"
AccessTokenSecret="$(TwitterAccessTokenSecret)" />
</Target>
<Target Name="_Version">
<FileUpdate
Files="Xpand\Xpand.Utils\Properties\AssemblyInfo.cs"
Regex="(\d+\.\d+\.\d+\.\d+)"
ReplacementText="$(Version)"
/>
<Time Format="yyyy-MM-dd HH:mm" >
<Output TaskParameter="FormattedTime" PropertyName="BuildTime" />
</Time>
</Target>
<Target Name="NuGetPackage">
<MakeDir Directories="$(BuildPath)\NuGet" />
<!-- Package -->
<Exec ContinueOnError="false" Command="Resource\Tool\NuGet.exe pack Resource\NuGet\eXpandAdditionalViewControlsProviderWeb.nuspec -BasePath $(MSBuildProjectDirectory) -OutputDirectory $(BuildPath)\NuGet -Version $(Version)"/>
<Exec ContinueOnError="false" Command="Resource\Tool\NuGet.exe pack Resource\NuGet\eXpandAdditionalViewControlsProviderWin.nuspec -BasePath $(MSBuildProjectDirectory) -OutputDirectory $(BuildPath)\NuGet -Version $(Version)"/>
<Exec ContinueOnError="false" Command="Resource\Tool\NuGet.exe pack Resource\NuGet\eXpandConditionalDetailViewsWeb.nuspec -BasePath $(MSBuildProjectDirectory) -OutputDirectory $(BuildPath)\NuGet -Version $(Version)"/>
<Exec ContinueOnError="false" Command="Resource\Tool\NuGet.exe pack Resource\NuGet\eXpandConditionalDetailViewsWin.nuspec -BasePath $(MSBuildProjectDirectory) -OutputDirectory $(BuildPath)\NuGet -Version $(Version)"/>
<Exec ContinueOnError="false" Command="Resource\Tool\NuGet.exe pack Resource\NuGet\eXpandExceptionHandlingWeb.nuspec -BasePath $(MSBuildProjectDirectory) -OutputDirectory $(BuildPath)\NuGet -Version $(Version)"/>
<Exec ContinueOnError="false" Command="Resource\Tool\NuGet.exe pack Resource\NuGet\eXpandExceptionHandlingWin.nuspec -BasePath $(MSBuildProjectDirectory) -OutputDirectory $(BuildPath)\NuGet -Version $(Version)"/>
<Exec ContinueOnError="false" Command="Resource\Tool\NuGet.exe pack Resource\NuGet\eXpandFilterDatastoreWeb.nuspec -BasePath $(MSBuildProjectDirectory) -OutputDirectory $(BuildPath)\NuGet -Version $(Version)"/>
<Exec ContinueOnError="false" Command="Resource\Tool\NuGet.exe pack Resource\NuGet\eXpandFilterDatastoreWin.nuspec -BasePath $(MSBuildProjectDirectory) -OutputDirectory $(BuildPath)\NuGet -Version $(Version)"/>
<Exec ContinueOnError="false" Command="Resource\Tool\NuGet.exe pack Resource\NuGet\eXpandImportWizardWin.nuspec -BasePath $(MSBuildProjectDirectory) -OutputDirectory $(BuildPath)\NuGet -Version $(Version)"/>
<Exec ContinueOnError="false" Command="Resource\Tool\NuGet.exe pack Resource\NuGet\eXpandIOWeb.nuspec -BasePath $(MSBuildProjectDirectory) -OutputDirectory $(BuildPath)\NuGet -Version $(Version)"/>
<Exec ContinueOnError="false" Command="Resource\Tool\NuGet.exe pack Resource\NuGet\eXpandIOWin.nuspec -BasePath $(MSBuildProjectDirectory) -OutputDirectory $(BuildPath)\NuGet -Version $(Version)"/>
<Exec ContinueOnError="false" Command="Resource\Tool\NuGet.exe pack Resource\NuGet\eXpandJobShedulerWeb.nuspec -BasePath $(MSBuildProjectDirectory) -OutputDirectory $(BuildPath)\NuGet -Version $(Version)"/>
<Exec ContinueOnError="false" Command="Resource\Tool\NuGet.exe pack Resource\NuGet\eXpandJobShedulerWin.nuspec -BasePath $(MSBuildProjectDirectory) -OutputDirectory $(BuildPath)\NuGet -Version $(Version)"/>
<Exec ContinueOnError="false" Command="Resource\Tool\NuGet.exe pack Resource\NuGet\eXpandMasterDetailWin.nuspec -BasePath $(MSBuildProjectDirectory) -OutputDirectory $(BuildPath)\NuGet -Version $(Version)"/>
<Exec ContinueOnError="false" Command="Resource\Tool\NuGet.exe pack Resource\NuGet\eXpandMemberLevelSecurityWin.nuspec -BasePath $(MSBuildProjectDirectory) -OutputDirectory $(BuildPath)\NuGet -Version $(Version)"/>
<Exec ContinueOnError="false" Command="Resource\Tool\NuGet.exe pack Resource\NuGet\eXpandModelArtifactWeb.nuspec -BasePath $(MSBuildProjectDirectory) -OutputDirectory $(BuildPath)\NuGet -Version $(Version)"/>
<Exec ContinueOnError="false" Command="Resource\Tool\NuGet.exe pack Resource\NuGet\eXpandModelArtifactWin.nuspec -BasePath $(MSBuildProjectDirectory) -OutputDirectory $(BuildPath)\NuGet -Version $(Version)"/>
<Exec ContinueOnError="false" Command="Resource\Tool\NuGet.exe pack Resource\NuGet\eXpandModelDifferenceWeb.nuspec -BasePath $(MSBuildProjectDirectory) -OutputDirectory $(BuildPath)\NuGet -Version $(Version)"/>
<Exec ContinueOnError="false" Command="Resource\Tool\NuGet.exe pack Resource\NuGet\eXpandModelDifferenceWin.nuspec -BasePath $(MSBuildProjectDirectory) -OutputDirectory $(BuildPath)\NuGet -Version $(Version)"/>
<Exec ContinueOnError="false" Command="Resource\Tool\NuGet.exe pack Resource\NuGet\eXpandNCarouselWeb.nuspec -BasePath $(MSBuildProjectDirectory) -OutputDirectory $(BuildPath)\NuGet -Version $(Version)"/>
<Exec ContinueOnError="false" Command="Resource\Tool\NuGet.exe pack Resource\NuGet\eXpandPivotChartWeb.nuspec -BasePath $(MSBuildProjectDirectory) -OutputDirectory $(BuildPath)\NuGet -Version $(Version)"/>
<Exec ContinueOnError="false" Command="Resource\Tool\NuGet.exe pack Resource\NuGet\eXpandPivotChartWin.nuspec -BasePath $(MSBuildProjectDirectory) -OutputDirectory $(BuildPath)\NuGet -Version $(Version)"/>
<Exec ContinueOnError="false" Command="Resource\Tool\NuGet.exe pack Resource\NuGet\eXpandSqlDbMapperWeb.nuspec -BasePath $(MSBuildProjectDirectory) -OutputDirectory $(BuildPath)\NuGet -Version $(Version)"/>
<Exec ContinueOnError="false" Command="Resource\Tool\NuGet.exe pack Resource\NuGet\eXpandSqlDbMapperWin.nuspec -BasePath $(MSBuildProjectDirectory) -OutputDirectory $(BuildPath)\NuGet -Version $(Version)"/>
<Exec ContinueOnError="false" Command="Resource\Tool\NuGet.exe pack Resource\NuGet\eXpandThumbnailWeb.nuspec -BasePath $(MSBuildProjectDirectory) -OutputDirectory $(BuildPath)\NuGet -Version $(Version)"/>
<Exec ContinueOnError="false" Command="Resource\Tool\NuGet.exe pack Resource\NuGet\eXpandTreelistViewWeb.nuspec -BasePath $(MSBuildProjectDirectory) -OutputDirectory $(BuildPath)\NuGet -Version $(Version)"/>
<Exec ContinueOnError="false" Command="Resource\Tool\NuGet.exe pack Resource\NuGet\eXpandTreelistViewWin.nuspec -BasePath $(MSBuildProjectDirectory) -OutputDirectory $(BuildPath)\NuGet -Version $(Version)"/>
<Exec ContinueOnError="false" Command="Resource\Tool\NuGet.exe pack Resource\NuGet\eXpandViewVariantsWeb.nuspec -BasePath $(MSBuildProjectDirectory) -OutputDirectory $(BuildPath)\NuGet -Version $(Version)"/>
<Exec ContinueOnError="false" Command="Resource\Tool\NuGet.exe pack Resource\NuGet\eXpandViewVariantsWin.nuspec -BasePath $(MSBuildProjectDirectory) -OutputDirectory $(BuildPath)\NuGet -Version $(Version)"/>
<Exec ContinueOnError="false" Command="Resource\Tool\NuGet.exe pack Resource\NuGet\eXpandWizardWin.nuspec -BasePath $(MSBuildProjectDirectory) -OutputDirectory $(BuildPath)\NuGet -Version $(Version)"/>
<Exec ContinueOnError="false" Command="Resource\Tool\NuGet.exe pack Resource\NuGet\eXpandWorkFlowrWin.nuspec -BasePath $(MSBuildProjectDirectory) -OutputDirectory $(BuildPath)\NuGet -Version $(Version)"/>
<Exec ContinueOnError="false" Command="Resource\Tool\NuGet.exe pack Resource\NuGet\eXpandWorkFlowWeb.nuspec -BasePath $(MSBuildProjectDirectory) -OutputDirectory $(BuildPath)\NuGet -Version $(Version)"/>
<Exec ContinueOnError="false" Command="Resource\Tool\NuGet.exe pack Resource\NuGet\eXpandWorldCreatorWeb.nuspec -BasePath $(MSBuildProjectDirectory) -OutputDirectory $(BuildPath)\NuGet -Version $(Version)"/>
<Exec ContinueOnError="false" Command="Resource\Tool\NuGet.exe pack Resource\NuGet\eXpandWorldCreatorWin.nuspec -BasePath $(MSBuildProjectDirectory) -OutputDirectory $(BuildPath)\NuGet -Version $(Version)"/>
<Exec ContinueOnError="false" Command="Resource\Tool\NuGet.exe pack Resource\NuGet\eXpandDashboardWin.nuspec -BasePath $(MSBuildProjectDirectory) -OutputDirectory $(BuildPath)\NuGet -Version $(Version)"/>
</Target>
<Target Name="NuGet" DependsOnTargets="NuGetPackage">
<!-- Publish -->
<Exec ContinueOnError="false" Command="Resource\Tool\NuGet.exe push Build\NuGet\eXpandAdditionalViewControlsProviderWeb.$(Version).nupkg $(NuGetApiKey)"/>
<Exec ContinueOnError="false" Command="Resource\Tool\NuGet.exe push Build\NuGet\eXpandAdditionalViewControlsProviderWin.$(Version).nupkg $(NuGetApiKey)"/>
<Exec ContinueOnError="false" Command="Resource\Tool\NuGet.exe push Build\NuGet\eXpandConditionalDetailViewsWeb.$(Version).nupkg $(NuGetApiKey)"/>
<Exec ContinueOnError="false" Command="Resource\Tool\NuGet.exe push Build\NuGet\eXpandConditionalDetailViewsWin.$(Version).nupkg $(NuGetApiKey)"/>
<Exec ContinueOnError="false" Command="Resource\Tool\NuGet.exe push Build\NuGet\eXpandExceptionHandlingWeb.$(Version).nupkg $(NuGetApiKey)"/>
<Exec ContinueOnError="false" Command="Resource\Tool\NuGet.exe push Build\NuGet\eXpandExceptionHandlingWin.$(Version).nupkg $(NuGetApiKey)"/>
<Exec ContinueOnError="false" Command="Resource\Tool\NuGet.exe push Build\NuGet\eXpandFilterDatastoreWeb.$(Version).nupkg $(NuGetApiKey)"/>
<Exec ContinueOnError="false" Command="Resource\Tool\NuGet.exe push Build\NuGet\eXpandFilterDatastoreWin.$(Version).nupkg $(NuGetApiKey)"/>
<Exec ContinueOnError="false" Command="Resource\Tool\NuGet.exe push Build\NuGet\eXpandImportWizardWin2.$(Version).nupkg $(NuGetApiKey)"/>
<Exec ContinueOnError="false" Command="Resource\Tool\NuGet.exe push Build\NuGet\eXpandIOWeb.$(Version).nupkg $(NuGetApiKey)"/>
<Exec ContinueOnError="false" Command="Resource\Tool\NuGet.exe push Build\NuGet\eXpandIOWin.$(Version).nupkg $(NuGetApiKey)"/>
<Exec ContinueOnError="false" Command="Resource\Tool\NuGet.exe push Build\NuGet\eXpandJobShedulerWeb.$(Version).nupkg $(NuGetApiKey)"/>
<Exec ContinueOnError="false" Command="Resource\Tool\NuGet.exe push Build\NuGet\eXpandJobShedulerWin.$(Version).nupkg $(NuGetApiKey)"/>
<Exec ContinueOnError="false" Command="Resource\Tool\NuGet.exe push Build\NuGet\eXpandMasterDetailWin.$(Version).nupkg $(NuGetApiKey)"/>
<Exec ContinueOnError="false" Command="Resource\Tool\NuGet.exe push Build\NuGet\eXpandMemberLevelSecurityWin.$(Version).nupkg $(NuGetApiKey)"/>
<Exec ContinueOnError="false" Command="Resource\Tool\NuGet.exe push Build\NuGet\eXpandModelArtifactWeb.$(Version).nupkg $(NuGetApiKey)"/>
<Exec ContinueOnError="false" Command="Resource\Tool\NuGet.exe push Build\NuGet\eXpandModelArtifactWin.$(Version).nupkg $(NuGetApiKey)"/>
<Exec ContinueOnError="false" Command="Resource\Tool\NuGet.exe push Build\NuGet\eXpandModelDifferenceWeb.$(Version).nupkg $(NuGetApiKey)"/>
<Exec ContinueOnError="false" Command="Resource\Tool\NuGet.exe push Build\NuGet\eXpandModelDifferenceWin.$(Version).nupkg $(NuGetApiKey)"/>
<Exec ContinueOnError="false" Command="Resource\Tool\NuGet.exe push Build\NuGet\eXpandNCarouselWeb.$(Version).nupkg $(NuGetApiKey)"/>
<Exec ContinueOnError="false" Command="Resource\Tool\NuGet.exe push Build\NuGet\eXpandPivotChartWeb.$(Version).nupkg $(NuGetApiKey)"/>
<Exec ContinueOnError="false" Command="Resource\Tool\NuGet.exe push Build\NuGet\eXpandPivotChartWin.$(Version).nupkg $(NuGetApiKey)"/>
<Exec ContinueOnError="false" Command="Resource\Tool\NuGet.exe push Build\NuGet\eXpandSqlDbMapperWeb.$(Version).nupkg $(NuGetApiKey)"/>
<Exec ContinueOnError="false" Command="Resource\Tool\NuGet.exe push Build\NuGet\eXpandSqlDbMapperWin.$(Version).nupkg $(NuGetApiKey)"/>
<Exec ContinueOnError="false" Command="Resource\Tool\NuGet.exe push Build\NuGet\eXpandThumbnailWeb.$(Version).nupkg $(NuGetApiKey)"/>
<Exec ContinueOnError="false" Command="Resource\Tool\NuGet.exe push Build\NuGet\eXpandTreelistViewWeb.$(Version).nupkg $(NuGetApiKey)"/>
<Exec ContinueOnError="false" Command="Resource\Tool\NuGet.exe push Build\NuGet\eXpandTreelistViewWin.$(Version).nupkg $(NuGetApiKey)"/>
<Exec ContinueOnError="false" Command="Resource\Tool\NuGet.exe push Build\NuGet\eXpandViewVariantsWeb.$(Version).nupkg $(NuGetApiKey)"/>
<Exec ContinueOnError="false" Command="Resource\Tool\NuGet.exe push Build\NuGet\eXpandViewVariantsWin.$(Version).nupkg $(NuGetApiKey)"/>
<Exec ContinueOnError="false" Command="Resource\Tool\NuGet.exe push Build\NuGet\eXpandWizardWin.$(Version).nupkg $(NuGetApiKey)"/>
<Exec ContinueOnError="false" Command="Resource\Tool\NuGet.exe push Build\NuGet\eXpandWorkFlowrWin.$(Version).nupkg $(NuGetApiKey)"/>
<Exec ContinueOnError="false" Command="Resource\Tool\NuGet.exe push Build\NuGet\eXpandWorkFlowWeb.$(Version).nupkg $(NuGetApiKey)"/>
<Exec ContinueOnError="false" Command="Resource\Tool\NuGet.exe push Build\NuGet\eXpandWorldCreatorWeb.$(Version).nupkg $(NuGetApiKey)"/>
<Exec ContinueOnError="false" Command="Resource\Tool\NuGet.exe push Build\NuGet\eXpandWorldCreatorWin.$(Version).nupkg $(NuGetApiKey)"/>
<Exec ContinueOnError="false" Command="Resource\Tool\NuGet.exe push Build\NuGet\eXpandDashboardWin.$(Version).nupkg $(NuGetApiKey)"/>
</Target>
</Project>