forked from aliostad/CacheCow
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CacheCow.msbuild
56 lines (51 loc) · 4.96 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
<?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" />
<TestProjFiles Include=".\test\**\*.csproj" />
<ScriptsDir Include=".\scripts\" />
<NugetExeDir Include=".\.nuget\" />
</ItemGroup>
<Target Name="Default" DependsOnTargets="Compile; Package" />
<Target Name="DefaultCI" DependsOnTargets="Compile; Package; Publish" />
<Target Name="Clean">
<RemoveDir Directories="@(BuildArtifactsDir)" />
</Target>
<Target Name="Init" DependsOnTargets="Clean">
<MakeDir Directories="@(BuildArtifactsDir);@(PackageOutputDir)" />
</Target>
<Target Name="Compile" DependsOnTargets="Init">
<MSBuild Projects="@(AppProjFiles)" 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 -OutputDirectory ..\artifacts\packages" />
<Exec WorkingDirectory="%(NugetExeDir.FullPath)" Command="nuget.exe pack ..\src\CacheCow.Common\CacheCow.Common.csproj -Build -OutputDirectory ..\artifacts\packages" />
<Exec WorkingDirectory="%(NugetExeDir.FullPath)" Command="nuget.exe pack ..\src\CacheCow.Client\CacheCow.Client.csproj -Build -OutputDirectory ..\artifacts\packages" />
<Exec WorkingDirectory="%(NugetExeDir.FullPath)" Command="nuget.exe pack ..\src\CacheCow.Server.EntityTagStore.SqlServer\CacheCow.Server.EntityTagStore.SqlServer.csproj -Build -OutputDirectory ..\artifacts\packages" />
<Exec WorkingDirectory="%(NugetExeDir.FullPath)" Command="nuget.exe pack ..\src\CacheCow.Server.EntityTagStore.RavenDb\CacheCow.Server.EntityTagStore.RavenDb.csproj -Build -OutputDirectory ..\artifacts\packages" />
<Exec WorkingDirectory="%(NugetExeDir.FullPath)" Command="nuget.exe pack ..\src\CacheCow.Server.EntityTagStore.MongoDb\CacheCow.Server.EntityTagStore.MongoDb.csproj -Build -OutputDirectory ..\artifacts\packages" />
<Exec WorkingDirectory="%(NugetExeDir.FullPath)" Command="nuget.exe pack ..\src\CacheCow.Server.EntityTagStore.Memcached\CacheCow.Server.EntityTagStore.Memcached.csproj -Build -OutputDirectory ..\artifacts\packages" />
<Exec WorkingDirectory="%(NugetExeDir.FullPath)" Command="nuget.exe pack ..\src\CacheCow.Server.EntityTagStore.Redis\CacheCow.Server.EntityTagStore.Redis.csproj -Build -OutputDirectory ..\artifacts\packages" />
<Exec WorkingDirectory="%(NugetExeDir.FullPath)" Command="nuget.exe pack ..\src\CacheCow.Server.EntityTagStore.AzureCaching\CacheCow.Server.EntityTagStore.AzureCaching.csproj -Build -OutputDirectory ..\artifacts\packages" />
<Exec WorkingDirectory="%(NugetExeDir.FullPath)" Command="nuget.exe pack ..\src\CacheCow.Client.AzureCachingCacheStore\CacheCow.Client.AzureCachingCacheStore.csproj -Build -OutputDirectory ..\artifacts\packages" />
<Exec WorkingDirectory="%(NugetExeDir.FullPath)" Command="nuget.exe pack ..\src\CacheCow.Server.EntityTagStore.Memcached12\CacheCow.Server.EntityTagStore.Memcached12.csproj -Build -OutputDirectory ..\artifacts\packages" />
<Exec WorkingDirectory="%(NugetExeDir.FullPath)" Command="nuget.exe pack ..\src\CacheCow.Server.EntityTagStore.Elasticsearch\CacheCow.Server.EntityTagStore.Elasticsearch.csproj -Build -OutputDirectory ..\artifacts\packages" />
<Exec WorkingDirectory="%(NugetExeDir.FullPath)" Command="nuget.exe pack ..\src\CacheCow.Client.FileCacheStore\CacheCow.Client.FileCacheStore.csproj -Build -OutputDirectory ..\artifacts\packages" />
<Exec WorkingDirectory="%(NugetExeDir.FullPath)" Command="nuget.exe pack ..\src\CacheCow.Client.MemcachedCacheStore\CacheCow.Client.MemcachedCacheStore.csproj -Build -OutputDirectory ..\artifacts\packages" />
<Exec WorkingDirectory="%(NugetExeDir.FullPath)" Command="nuget.exe pack ..\src\CacheCow.Client.MemcachedCacheStore12\CacheCow.Client.MemcachedCacheStore12.csproj -Build -OutputDirectory ..\artifacts\packages" />
<Exec WorkingDirectory="%(NugetExeDir.FullPath)" Command="nuget.exe pack ..\src\CacheCow.Client.RedisCacheStore\CacheCow.Client.RedisCacheStore.csproj -Build -OutputDirectory ..\artifacts\packages" />
<Exec WorkingDirectory="%(NugetExeDir.FullPath)" Command="nuget.exe pack ..\src\CacheCow.Client.SqlCacheStore\CacheCow.Client.SqlCacheStore.csproj -Build -OutputDirectory ..\artifacts\packages" />
</Target>
<Target Name="Publish">
<Exec WorkingDirectory="%(ScriptsDir.FullPath)" Command="powershell -file .\publish.ps1" />
</Target>
</Project>