forked from aliostad/CacheCow
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CacheCow.msbuild
73 lines (67 loc) · 6.87 KB
/
CacheCow.msbuild
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
<?xml version="1.0" encoding="utf-8"?>
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003"
ToolsVersion="4.0"
DefaultTargets="Default">
<PropertyGroup>
<Configuration Condition="'$(Configuration)' == ''">Debug</Configuration>
<SolutionDir Condition=" '$(SolutionDir)' == ''">$(MSBuildThisFileDirectory)</SolutionDir>
</PropertyGroup>
<ItemGroup>
<BuildArtifactsDir Include=".\artifacts\" />
<PackageOutputDir Include=".\artifacts\packages" />
<Solutionfile Include=".\CacheCow.sln" />
<AppProjFiles Include=".\src\**\*.csproj" />
<SnProjFiles Include=".\src\**\CacheCow.Common.csproj;.\src\**\CacheCow.Server.csproj;.\src\**\CacheCow.Client.csproj;.\src\**\CacheCow.Server.EntityTagStore.AzureCaching.csproj;.\src\**\CacheCow.Client.AzureCachingCacheStore.csproj;.\src\**\CacheCow.Server.EntityTagStore.MongoDb.csproj" />
<TestProjFiles Include=".\test\**\*.csproj" />
<ScriptsDir Include=".\scripts\" />
<NugetExeDir Include=".\" />
</ItemGroup>
<Target Name="Default" DependsOnTargets="Restore; Compile; Package" />
<Target Name="DefaultCI" DependsOnTargets="Restore; Compile; Package; Publish" />
<Target Name="sn" DependsOnTargets="Restore;CompileSN;PackageSN" />
<Target Name="sn-publish" DependsOnTargets="Restore;CompileSN;PackageSN;Publish" />
<Target Name="Clean">
<RemoveDir Directories="@(BuildArtifactsDir)" />
</Target>
<Target Name="Init" DependsOnTargets="Clean">
<MakeDir Directories="@(BuildArtifactsDir);@(PackageOutputDir)" />
</Target>
<Target Name="Restore">
<Exec Command="nuget.exe restore" />
</Target>
<Target Name="Compile" DependsOnTargets="Init">
<MSBuild Projects="@(AppProjFiles)" Targets="Rebuild" Properties="OutDir=%(BuildArtifactsDir.FullPath);Configuration=$(Configuration);SolutionDir=$(SolutionDir)" />
</Target>
<Target Name="CompileSN" DependsOnTargets="Init">
<MSBuild Projects="@(SnProjFiles)" Targets="Rebuild" Properties="OutDir=%(BuildArtifactsDir.FullPath);Configuration=$(Configuration);SolutionDir=$(SolutionDir)" />
</Target>
<Target Name="Package">
<Exec WorkingDirectory="%(NugetExeDir.FullPath)" Command="nuget.exe pack .\src\CacheCow.Server\CacheCow.Server.csproj -Build -Symbols -OutputDirectory .\artifacts\packages" />
<Exec WorkingDirectory="%(NugetExeDir.FullPath)" Command="nuget.exe pack .\src\CacheCow.Common\CacheCow.Common.csproj -Build -Symbols -OutputDirectory .\artifacts\packages" />
<Exec WorkingDirectory="%(NugetExeDir.FullPath)" Command="nuget.exe pack .\src\CacheCow.Client\CacheCow.Client.csproj -Build -Symbols -OutputDirectory .\artifacts\packages" />
<Exec WorkingDirectory="%(NugetExeDir.FullPath)" Command="nuget.exe pack .\src\CacheCow.Server.EntityTagStore.SqlServer\CacheCow.Server.EntityTagStore.SqlServer.csproj -Build -Symbols -OutputDirectory .\artifacts\packages" />
<Exec WorkingDirectory="%(NugetExeDir.FullPath)" Command="nuget.exe pack .\src\CacheCow.Server.EntityTagStore.RavenDb\CacheCow.Server.EntityTagStore.RavenDb.csproj -Build -Symbols -OutputDirectory .\artifacts\packages" />
<Exec WorkingDirectory="%(NugetExeDir.FullPath)" Command="nuget.exe pack .\src\CacheCow.Server.EntityTagStore.MongoDb\CacheCow.Server.EntityTagStore.MongoDb.csproj -Build -Symbols -OutputDirectory .\artifacts\packages" />
<Exec WorkingDirectory="%(NugetExeDir.FullPath)" Command="nuget.exe pack .\src\CacheCow.Server.EntityTagStore.Memcached\CacheCow.Server.EntityTagStore.Memcached.csproj -Build -Symbols -OutputDirectory .\artifacts\packages" />
<Exec WorkingDirectory="%(NugetExeDir.FullPath)" Command="nuget.exe pack .\src\CacheCow.Server.EntityTagStore.Redis\CacheCow.Server.EntityTagStore.Redis.csproj -Build -Symbols -OutputDirectory .\artifacts\packages" />
<Exec WorkingDirectory="%(NugetExeDir.FullPath)" Command="nuget.exe pack .\src\CacheCow.Server.EntityTagStore.AzureCaching\CacheCow.Server.EntityTagStore.AzureCaching.csproj -Build -Symbols -OutputDirectory .\artifacts\packages" />
<Exec WorkingDirectory="%(NugetExeDir.FullPath)" Command="nuget.exe pack .\src\CacheCow.Client.AzureCachingCacheStore\CacheCow.Client.AzureCachingCacheStore.csproj -Build -Symbols -OutputDirectory .\artifacts\packages" />
<Exec WorkingDirectory="%(NugetExeDir.FullPath)" Command="nuget.exe pack .\src\CacheCow.Server.EntityTagStore.Memcached12\CacheCow.Server.EntityTagStore.Memcached12.csproj -Build -Symbols -OutputDirectory .\artifacts\packages" />
<Exec WorkingDirectory="%(NugetExeDir.FullPath)" Command="nuget.exe pack .\src\CacheCow.Server.EntityTagStore.Elasticsearch\CacheCow.Server.EntityTagStore.Elasticsearch.csproj -Build -Symbols -OutputDirectory .\artifacts\packages" />
<Exec WorkingDirectory="%(NugetExeDir.FullPath)" Command="nuget.exe pack .\src\CacheCow.Client.FileCacheStore\CacheCow.Client.FileCacheStore.csproj -Build -Symbols -OutputDirectory .\artifacts\packages" />
<Exec WorkingDirectory="%(NugetExeDir.FullPath)" Command="nuget.exe pack .\src\CacheCow.Client.MemcachedCacheStore\CacheCow.Client.MemcachedCacheStore.csproj -Build -Symbols -OutputDirectory .\artifacts\packages" />
<Exec WorkingDirectory="%(NugetExeDir.FullPath)" Command="nuget.exe pack .\src\CacheCow.Client.MemcachedCacheStore12\CacheCow.Client.MemcachedCacheStore12.csproj -Build -Symbols -OutputDirectory .\artifacts\packages" />
<Exec WorkingDirectory="%(NugetExeDir.FullPath)" Command="nuget.exe pack .\src\CacheCow.Client.RedisCacheStore\CacheCow.Client.RedisCacheStore.csproj -Build -Symbols -OutputDirectory .\artifacts\packages" />
<Exec WorkingDirectory="%(NugetExeDir.FullPath)" Command="nuget.exe pack .\src\CacheCow.Client.SqlCacheStore\CacheCow.Client.SqlCacheStore.csproj -Build -Symbols -OutputDirectory .\artifacts\packages" />
</Target>
<Target Name="PackageSN">
<Exec WorkingDirectory="%(NugetExeDir.FullPath)" Command="nuget.exe pack .\src\CacheCow.Client\CacheCow.Client.sn.nuspec -Build -Symbols -OutputDirectory .\artifacts\packages" />
<Exec WorkingDirectory="%(NugetExeDir.FullPath)" Command="nuget.exe pack .\src\CacheCow.Server\CacheCow.Server.sn.nuspec -Build -Symbols -OutputDirectory .\artifacts\packages" />
<Exec WorkingDirectory="%(NugetExeDir.FullPath)" Command="nuget.exe pack .\src\CacheCow.Common\CacheCow.Common.sn.nuspec -Build -Symbols -OutputDirectory .\artifacts\packages" />
<Exec WorkingDirectory="%(NugetExeDir.FullPath)" Command="nuget.exe pack .\src\CacheCow.Server.EntityTagStore.AzureCaching\CacheCow.Server.EntityTagStore.AzureCaching.sn.nuspec -Build -Symbols -OutputDirectory .\artifacts\packages" />
<Exec WorkingDirectory="%(NugetExeDir.FullPath)" Command="nuget.exe pack .\src\CacheCow.Client.AzureCachingCacheStore\CacheCow.Client.AzureCachingCacheStore.sn.nuspec -Build -Symbols -OutputDirectory .\artifacts\packages" />
</Target>
<Target Name="Publish">
<Exec WorkingDirectory="%(ScriptsDir.FullPath)" Command="powershell -file .\publish.ps1" />
</Target>
</Project>