forked from alphacloud/Autofac.Extras.Quartz
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.proj
40 lines (32 loc) · 1.61 KB
/
build.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
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<BuildTarget Condition="'$(BuildTarget)' == ''">Rebuild</BuildTarget>
<BuildConfig Condition="'$(BuildConfig)' == ''">Debug</BuildConfig>
</PropertyGroup>
<!-- Directories -->
<PropertyGroup>
<RootDir>$(MSBuildProjectDirectory)</RootDir>
<SrcDir>$(RootDir)\src</SrcDir>
<NuGetExe>$(SrcDir)\.nuget\nuget.exe</NuGetExe>
<PackagesOutDir>$(RootDir)\out\packages</PackagesOutDir>
</PropertyGroup>
<PropertyGroup>
<MainSolution>$(SrcDir)\Autofac.Extras.Quartz.sln</MainSolution>
</PropertyGroup>
<Target Name="BuildAll">
<MSBuild Projects="$(MainSolution)" Properties="Configuration=$(BuildConfig);CreateHardLinksForCopyLocalIfPossible=true" Targets="$(BuildTarget)"
BuildInParallel="true" />
</Target>
<Target Name="CleanAll">
<Message Text="Performing full cleanup..." />
<MSBuild Projects="$(MainSolution)" Properties="Configuration=Debug" Targets="Clean" BuildInParallel="true" />
<MSBuild Projects="$(MainSolution)" Properties="Configuration=Release" Targets="Clean" BuildInParallel="true" />
</Target>
<Target Name="CreatePackagesDir">
<MakeDir Directories="$(PackagesOutDir)" ContinueOnError="true" />
</Target>
<Target Name="Pack" DependsOnTargets="CreatePackagesDir">
<Exec Command="$(NuGetExe) pack Autofac.Extras.Quartz.csproj -OutputDirectory $(PackagesOutDir) -Build -Prop Configuration=Release" WorkingDirectory="$(SrcDir)\Autofac.Extras.Quartz" />
</Target>
</Project>