forked from eXpandFramework/eXpand
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Xpand.build
235 lines (232 loc) · 21.5 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
<?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>
<NuGetTool>Resource\Tool\NuGet.exe</NuGetTool>
<TwitterTool>_third_party_assemblies\XTwitter.exe</TwitterTool>
</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>
<_third_party_assemblies>$(MSBuildProjectDirectory)\_third_party_assemblies</_third_party_assemblies>
<SourceExclusions>**\.svn\**\*.*;**\_svn\**\*.*;**\*.user;**\*.suo;**\*.db;**\bin\**\*.*;**\obj\**\*.*;.hg\**\*.*;_hg\**\*.*;.git\**\*.*</SourceExclusions>
</PropertyGroup>
<ItemGroup>
<ProjectFiles Include=" .\Xpand\Xpand.Utils\Xpand.Utils.csproj; .\Xpand.EasyTest\Xpand.EasyTest.sln;.\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.Modules\Security\Xpand.ExpressApp.Security.csproj; .\Xpand\Xpand.ExpressApp.Modules\Logic\Xpand.ExpressApp.Logic.csproj; .\Xpand\Xpand.ExpressApp.Modules\ModelAdaptor\Xpand.ExpressApp.ModelAdaptor.csproj; .\Xpand\Xpand.ExpressApp.Modules\Validation\Xpand.ExpressApp.Validation.csproj; .\Xpand\Xpand.ExpressApp.Modules\ModelArtifactState\Xpand.ExpressApp.ModelArtifactState.csproj;.\Xpand\Xpand.ExpressApp.Modules\AuditTrail\Xpand.ExpressApp.AuditTrail.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.Win\Xpand.ExpressApp.Security.Win.csproj; .\Xpand\Xpand.ExpressApp.Modules\Security.Web\Xpand.ExpressApp.Security.Web.csproj;
.\Xpand\Xpand.ExpressApp.Modules\MapView\Xpand.ExpressApp.MapView.csproj;.\Xpand\Xpand.ExpressApp.Modules\FileAttachment\Xpand.ExpressApp.FileAttachment.csproj;.\Xpand\Xpand.ExpressApp.Modules\FileAttachment.Web\Xpand.ExpressApp.FileAttachment.Web.csproj;
.\Xpand\Xpand.ExpressApp.Modules\MapView.Web\Xpand.ExpressApp.MapView.Web.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\MemberLevelSecurity\Xpand.ExpressApp.MemberLevelSecurity.csproj; .\Xpand\Xpand.ExpressApp.Modules\MemberLevelSecurity.Win\Xpand.ExpressApp.MemberLevelSecurity.Win.csproj; .\Xpand\Xpand.ExpressApp.Modules\Email\Xpand.ExpressApp.Email.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\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;" />
<ProjectFiles Include=" .\Xpand\Xpand.ExpressApp.Modules\XtraDashboard.Win\Xpand.ExpressApp.XtraDashboard.Win.csproj;.\Xpand\Xpand.ExpressApp.Modules\XtraDashboard.Web\Xpand.ExpressApp.XtraDashboard.Web.csproj;" Condition="$(SkipDashboard)!='true'" />
<ProjectFiles Include=" .\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\Xpand.ExpressApp.Scheduler.csproj;.\Xpand\Xpand.ExpressApp.Modules\Scheduler.Web\Xpand.ExpressApp.Scheduler.Web.csproj;.\Xpand\Xpand.ExpressApp.Modules\Scheduler.Win\Xpand.ExpressApp.Scheduler.Win.csproj; .\Xpand\Xpand.ExpressApp.Modules\Reports\Xpand.ExpressApp.Reports.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\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; .\Xpand\Xpand.ExpressApp.Modules\HtmlPropertyEditor.Web\Xpand.ExpressApp.HtmlPropertyEditor.Web.csproj; .\ToolBoxCreator\Xpand.ToolBoxCreator.csproj;" />
<ProjectFiles Include=" .\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;" Condition="$(SkipDashboard)!='true'" />
<ProjectFiles Include=" .\Demos\SecurityDemo\SecurityDemo.sln;" />
<ProjectFiles Include=" .\Demos\WorkflowDemo\WorkflowDemo.sln;" Condition="$(SkipDashboard)!='true'" />
<ProjectFiles Include=" .\Demos\XVideoRental\XVideoRental.Module.Win\XVideoRental.Module.Win.csproj; .\Demos\XVideoRental\XVideoRental.Win\XVideoRental.Win.csproj; .\Demos\Middle Tier\E4036-WCF\E4036.sln;.\Demos\Middle Tier\E4035-Remoting\E4035.sln;" Condition="$(SkipDashboard)!='true'" />
<ProjectFiles Include=" .\Demos\Modules\MapView\MapViewTester.sln;.\Demos\Modules\FileAttachment\FileAttachmentTester.sln;.\Demos\Modules\AdditionalViewControlProvider\AdditionalViewControlProviderTester.sln; .\Demos\Modules\AuditTrail\AuditTrailTester.sln; .\Demos\Modules\Chart\ChartTester.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\Email\EmailTester.sln; " />
<ProjectFiles Include=".\Demos\Modules\XtraDashboardTester\XtraDashboardTester.sln" Condition="$(SkipDashboard)!='true'" />
<ProjectFiles Include=" .\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="FixReferences" Condition="$(SkipFixReferences)!=true">
<MSBuild Projects=".\FixReferences\FixReferences.csproj" Targets="Build" />
<Exec Command=".\FixReferences\bin\debug\FixReferences.exe" />
</Target>
<!--
Solution redirects. Every VS project normally knows how to support these targets
-->
<Target Name="Build" DependsOnTargets="FixReferences">
<Message Text="@(ProjectFiles->'%(Filename)', '%0D%0A')" />
<MSBuild Projects="@(ProjectFiles)" Targets="Build" Properties="Configuration=$(Configuration);BuildConstants=NET35;OutputPath=$(XpandPath);DefineConstants=$(DefineConstants)" />
</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;$(XpandPath)\*.exe;$(XpandPath)\*.config;">
<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*;">
<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*;">
<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">
<Exec ContinueOnError="false" Command="$(TwitterTool) "$(TwitterConsumerKey)" "$(TwitterConsumerSecret)" "$(TwitterAccessToken)" "$(TwitterAccessTokenSecret)" "new@expandframework v$(Version): http://goo.gl/g9wRy @DevExpress_XAF #dotnet #opensource #software #LOB #business #application #framework""/>
</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>
<ItemGroup>
<NuspecFile Include="Resource\NuGet\*.nuspec" Exclude="Resource\NuGet\XtraDashboardWin.nuspec;Resource\NuGet\XtraDashboardWeb.nuspec" Condition="$(SkipDashboard)=='true'"/>
<NuspecFile Include="Resource\NuGet\*.nuspec" Condition="$(SkipDashboard)!='true'"/>
</ItemGroup>
<Target Name="NuGetPackage" Inputs="@(NuspecFile)" Outputs="NotUsedOutput">
<MakeDir Directories="$(BuildPath)\NuGet" />
<Exec ContinueOnError="false" Command="$(NuGetTool) pack %(NuspecFile.Identity) -BasePath $(MSBuildProjectDirectory) -OutputDirectory $(BuildPath)\NuGet -Version $(Version)"/>
<CreateItem Include="Build\NuGet\*.nupkg" >
<Output TaskParameter="Include" ItemName="NuGetFile"/>
</CreateItem>
</Target>
<Target Name="NuGet" Inputs="@(NuGetFile)" Outputs="NotUsedOutput" DependsOnTargets="NuGetPackage">
<Exec ContinueOnError="false" Command="$(NuGetTool) push %(NuGetFile.Identity) $(NuGetApiKey) " />
</Target>
</Project>