-
Notifications
You must be signed in to change notification settings - Fork 30
/
Cassia.targets
41 lines (34 loc) · 1.81 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
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003" DefaultTargets="All">
<ItemGroup>
<Projects Include="Cassia.sln" />
</ItemGroup>
<PropertyGroup>
<BuildPath>Bin</BuildPath>
<DocPath>Doc</DocPath>
<DropPath Condition="'$(DropPath)' == ''">$(BuildPath)\Publish</DropPath>
<PackageFile>$(PACKAGE_FILE)</PackageFile>
<PackageFile Condition="'$(PackageFile)' == ''">$(DropPath)\Cassia.zip</PackageFile>
<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">
<MSBuild Projects="@(Projects)" Targets="Restore;Build" Properties="Configuration=Release" />
</Target>
<Target Name="Package">
<CreateItem Include="**\*.*" Exclude="**\obj\**\*.*;**\*.suo;**\*.user;**\*.log;**\*.cache;**\.git*\**\*.*;**\.vs\**\*.*;$(DropPath)\**\*.*">
<Output TaskParameter="Include" ItemName="PackageFiles" />
</CreateItem>
<Zip Files="@(PackageFiles)" ZipFileName="$(PackageFile)" />
</Target>
<Target Name="NuGet">
<MSBuild Projects="Source\Cassia\Cassia.csproj" Targets="Pack" Properties="Configuration=Release;PackageOutputPath=..\..\$(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)\netstandard2.0\Cassia.dll" />
</Target>
<Target Name="All" DependsOnTargets="Build;Documentation;Package;NuGet" />
</Project>