forked from miyabis/MSOfficeTFSAddin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Build2010.proj
96 lines (88 loc) · 6.02 KB
/
Build2010.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
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" DefaultTargets="Publish" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="packages\MSBuild.Extension.Pack.1.8.0\build\net40\MSBuild.Extension.Pack.targets" Condition="Exists('packages\MSBuild.Extension.Pack.1.8.0\build\net40\MSBuild.Extension.Pack.targets')" />
<PropertyGroup>
<ProjLocation>.</ProjLocation>
<ExcelPublishLocation>$(ProjLocation)\ExcelTFSAddIn\bin\Release\app.publish</ExcelPublishLocation>
<PowerPointPublishLocation>$(ProjLocation)\PowerPointTFSAddIn\bin\Release\app.publish</PowerPointPublishLocation>
<ProjectPublishLocation>$(ProjLocation)\ProjectTFSAddIn\bin\Release\app.publish</ProjectPublishLocation>
<VisioPublishLocation>$(ProjLocation)\VisioTFSAddIn\bin\Release\app.publish</VisioPublishLocation>
<WordPublishLocation>$(ProjLocation)\WordTFSAddIn\bin\Release\app.publish</WordPublishLocation>
<MsiLocation>$(ProjLocation)\SetupProject\bin\Release</MsiLocation>
<DeploymentFolder>$(ProjLocation)\Publish\</DeploymentFolder>
<ExcelPublishVer>1.3.0.0</ExcelPublishVer>
<PowerPointPublishVer>1.3.0.0</PowerPointPublishVer>
<ProjectPublishVer>1.3.0.0</ProjectPublishVer>
<VisioPublishVer>1.3.0.0</VisioPublishVer>
<WordPublishVer>1.3.0.0</WordPublishVer>
</PropertyGroup>
<Target Name="Publish" DependsOnTargets="Clean">
<Message Text="Publish-Build started for build no $(ApplicationRevision)" />
<MSBuild Projects="$(ProjLocation)/ExcelTFSAddIn/ExcelTFSAddIn2010.vbproj"
Properties="Configuration=Release;ApplicationVersion=$(ExcelPublishVer)" Targets="Rebuild;Publish"/>
<MSBuild Projects="$(ProjLocation)/PowerPointTFSAddIn/PowerPointTFSAddIn2010.vbproj"
Properties="Configuration=Release;ApplicationVersion=$(PowerPointPublishVer)" Targets="Rebuild;Publish"/>
<MSBuild Projects="$(ProjLocation)/ProjectTFSAddIn/ProjectTFSAddIn2010.vbproj"
Properties="Configuration=Release;ApplicationVersion=$(ProjectPublishVer)" Targets="Rebuild;Publish"/>
<MSBuild Projects="$(ProjLocation)/VisioTFSAddIn/VisioTFSAddIn2010.vbproj"
Properties="Configuration=Release;ApplicationVersion=$(VisioPublishVer)" Targets="Rebuild;Publish"/>
<MSBuild Projects="$(ProjLocation)/WordTFSAddIn/WordTFSAddIn2010.vbproj"
Properties="Configuration=Release;ApplicationVersion=$(WordPublishVer)" Targets="Rebuild;Publish"/>
<MSBuild Projects="$(ProjLocation)/SetupProject/SetupProject.wixproj"
Properties="Configuration=Release;Platform=x86" Targets="build"/>
<!--
-->
<ItemGroup>
<SetupFiles Include="$(ExcelPublishLocation)\*.*"/>
<SetupFiles Include="$(PowerPointPublishLocation)\*.*"/>
<SetupFiles Include="$(ProjectPublishLocation)\*.*"/>
<SetupFiles Include="$(VisioPublishLocation)\*.*"/>
<SetupFiles Include="$(WordPublishLocation)\*.*"/>
<UpdateFiles Include="$(ExcelPublishLocation)\Application Files\**\*.*"/>
<UpdateFiles Include="$(PowerPointPublishLocation)\Application Files\**\*.*"/>
<UpdateFiles Include="$(ProjectPublishLocation)\Application Files\**\*.*"/>
<UpdateFiles Include="$(VisioPublishLocation)\Application Files\**\*.*"/>
<UpdateFiles Include="$(WordPublishLocation)\Application Files\**\*.*"/>
<MsiFilesUS Include="$(MsiLocation)\en-US\*.msi" />
<MsiFilesJP Include="$(MsiLocation)\ja-JP\*.msi" />
</ItemGroup>
<Copy
SourceFiles="@(SetupFiles)"
DestinationFolder="$(DeploymentFolder)\"
/>
<Copy
SourceFiles="@(UpdateFiles)"
DestinationFolder="$(DeploymentFolder)\Application Files\%(RecursiveDir)"
/>
<ItemGroup>
<MSOfficePlublishFiles Include="$(DeploymentFolder)\**\*.*" />
</ItemGroup>
<MSBuild.ExtensionPack.Compression.Zip TaskAction="Create"
CompressFiles="@(MSOfficePlublishFiles);"
RemoveRoot="$(DeploymentFolder)"
ZipFileName="$(DeploymentFolder)\MSOfficeTFSAddIn.zip"/>
<Copy
SourceFiles="@(MsiFilesUS)"
DestinationFiles="@(MsiFilesUS->'$(DeploymentFolder)%(Filename)_en%(Extension)')"
/>
<Copy
SourceFiles="@(MsiFilesJP)"
DestinationFiles="@(MsiFilesJP->'$(DeploymentFolder)%(Filename)_ja%(Extension)')"
/>
</Target>
<Target Name="Clean" Condition=" Exists('$(DeploymentFolder)') ">
<Message Text="Clean project:" />
<MSBuild.ExtensionPack.FileSystem.Folder TaskAction="RemoveContent" Path="$(DeploymentFolder)"/>
<MSBuild.ExtensionPack.FileSystem.Folder TaskAction="RemoveContent" Path="$(ExcelPublishLocation)" ContinueOnError="true" />
<MSBuild.ExtensionPack.FileSystem.Folder TaskAction="RemoveContent" Path="$(PowerPointPublishLocation)" ContinueOnError="true" />
<MSBuild.ExtensionPack.FileSystem.Folder TaskAction="RemoveContent" Path="$(ProjectPublishLocation)" ContinueOnError="true" />
<MSBuild.ExtensionPack.FileSystem.Folder TaskAction="RemoveContent" Path="$(VisioPublishLocation)" ContinueOnError="true" />
<MSBuild.ExtensionPack.FileSystem.Folder TaskAction="RemoveContent" Path="$(WordPublishLocation)" ContinueOnError="true" />
<MSBuild Projects="$(ProjLocation)/ExcelTFSAddIn/ExcelTFSAddIn2010.vbproj" Properties="Configuration=Release" Targets="Clean"/>
<MSBuild Projects="$(ProjLocation)/PowerPointTFSAddIn/PowerPointTFSAddIn2010.vbproj" Properties="Configuration=Release" Targets="Clean"/>
<MSBuild Projects="$(ProjLocation)/ProjectTFSAddIn/ProjectTFSAddIn2010.vbproj" Properties="Configuration=Release" Targets="Clean"/>
<MSBuild Projects="$(ProjLocation)/VisioTFSAddIn/VisioTFSAddIn2010.vbproj" Properties="Configuration=Release" Targets="Clean"/>
<MSBuild Projects="$(ProjLocation)/WordTFSAddIn/WordTFSAddIn2010.vbproj" Properties="Configuration=Release" Targets="Clean"/>
<MSBuild Projects="$(ProjLocation)/SetupProject/SetupProject.wixproj" Properties="Configuration=Release" Targets="Clean"/>
</Target>
</Project>