forked from DotNetOpenAuth/DotNetOpenAuth
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDotNetOpenAuth.automated.targets
More file actions
35 lines (30 loc) · 1.54 KB
/
DotNetOpenAuth.automated.targets
File metadata and controls
35 lines (30 loc) · 1.54 KB
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
<?xml version="1.0" encoding="utf-8"?>
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="4.0" InitialTargets="_SetDropProperties">
<Import Project="$(ProjectRoot)tools\$(ProductName).targets"/>
<UsingTask AssemblyFile="$(ProjectRoot)lib\MSBuild.Community.Tasks.dll" TaskName="Zip"/>
<UsingTask AssemblyFile="$(ProjectRoot)lib\MSBuild.Community.Tasks.dll" TaskName="NUnit" />
<Target Name="Rebuild" DependsOnTargets="Clean;Build"/>
<Target Name="Clean">
<ItemGroup>
<ProjectsToClean>
<Targets Condition=" '%(ProjectsToClean.Targets)' == '' ">Clean</Targets>
</ProjectsToClean>
</ItemGroup>
<Delete Files="@(FilesToClean)" />
<RemoveDir Directories="@(DirectoriesToClean)" />
<MSBuild Projects="@(ProjectsToClean)" Targets="%(ProjectsToClean.Targets)" BuildInParallel="$(BuildInParallel)" Properties="%(ProjectsToClean.Properties)" />
</Target>
<Target Name="_SetDropProperties" DependsOnTargets="GetBuildVersion">
<!-- This target is necessary because PropertyGroups within the same Target as
where CallTarget is fired do NOT affect those called targets. -->
<!-- The rest of these are here so that other DependsOn targets have access to these properties. -->
<PropertyGroup>
<DropDirectoryNoSlash>$(DropsRoot)$(ProductName)-$(BuildVersion)</DropDirectoryNoSlash>
<DropDirectory>$(DropDirectoryNoSlash)\</DropDirectory>
</PropertyGroup>
</Target>
<Target Name="BuildProduct">
<MSBuild BuildInParallel="$(BuildInParallel)"
Projects="@(ProductProjects)" />
</Target>
</Project>