forked from ng-pe/cassia
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cassia.targets
48 lines (41 loc) · 2.12 KB
/
Cassia.targets
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
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003" DefaultTargets="All">
<ItemGroup>
<Projects Include="Cassia.sln" />
</ItemGroup>
<PropertyGroup>
<BuildPath>Bin</BuildPath>
<DocPath>Doc</DocPath>
<PackageLabel>Cassia-$(BUILD_NUMBER).zip</PackageLabel>
<DropPath>$(BuildPath)\Publish</DropPath>
<MSBuildCommunityTasksPath>$(MSBuildProjectDirectory)\Tools\MSBuildCommunityTasks</MSBuildCommunityTasksPath>
</PropertyGroup>
<Import Project="$(MSBuildCommunityTasksPath)\MSBuild.Community.Tasks.Targets" />
<Target Name="Clean">
<RemoveDir Directories="$(BuildPath);$(DocPath)" />
<MakeDir Directories="$(BuildPath);$(DropPath)" />
</Target>
<Target Name="Build" DependsOnTargets="Clean">
<AssemblyInfo Condition="'$(BUILD_NUMBER)' != ''"
CodeLanguage="CS"
OutputFile="VersionInfo.cs"
AssemblyVersion="$(BUILD_NUMBER)"
AssemblyFileVersion="$(BUILD_NUMBER)"
AssemblyCompany="Cassia Developers"
AssemblyProduct="Cassia: .NET Terminal Services Library"
AssemblyCopyright="Copyright © 2008 - 2011" />
<MSBuild Projects="@(Projects)" Targets="Build" Properties="Configuration=Release" />
</Target>
<Target Name="Package">
<CreateItem Include="**\*.*" Exclude="**\obj\**\*.*;**\*.suo;**\*.user;**\*.log;**\*.cache;**\.svn\**\*.*;**\*Resharper*\**\*.*;$(DropPath)\**\*.*">
<Output TaskParameter="Include" ItemName="PackageFiles" />
</CreateItem>
<Zip Files="@(PackageFiles)" ZipFileName="$(DropPath)\$(PackageLabel)" />
</Target>
<Target Name="NuGet">
<Exec Command="Tools\NuGet\NuGet.exe pack Source\Cassia\Cassia.csproj -OutputDirectory $(DropPath)" />
</Target>
<Target Name="Documentation">
<Exec Command="Tools\ImmDoc.NET\ImmDocNet.exe -pn:Cassia -cn:$(DocPath)\Cassia.chm -cp:Tools\HTMLHelpWorkshop -od:$(DocPath) $(BuildPath)\Cassia.xml $(BuildPath)\Cassia.dll" />
</Target>
<Target Name="All" DependsOnTargets="Build;Documentation;Package;NuGet" />
</Project>