Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 53 lines (39 sloc) 2.23 kb
21e4573 Steve Wagner Add MSBuild deployment script.
lanwin authored
1 <?xml version="1.0" encoding="utf-8"?>
2 <Project DefaultTargets="deploy" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3 <!-- $Id: Task.proj 135 2006-03-19 01:02:09Z pwelter34 $ -->
4
5 <PropertyGroup>
6 <MSBuildCommunityTasksPath>$(MSBuildProjectDirectory)\tools\MSBuild.Community.Tasks</MSBuildCommunityTasksPath>
7 <DeployPath>$(MSBuildProjectDirectory)\deploy</DeployPath>
8 <DeployTmp>$(DeployPath)\tmp</DeployTmp>
9 <SourceProject>$(MSBuildProjectDirectory)\MongoDB-CSharp.sln</SourceProject>
10 </PropertyGroup>
11
12 <Import Project="$(MSBuildCommunityTasksPath)\MSBuild.Community.Tasks.Targets"/>
13
14 <Target Name="releasebuild">
15
16 <ItemGroup>
17 <ProjectToBuild Include="$(MSBuildProjectDirectory)\source\MongoDB\MongoDB.csproj" />
18 <ProjectToBuild Include="$(MSBuildProjectDirectory)\source\MongoDB.GridFS\MongoDB.GridFS.csproj" />
19 </ItemGroup>
20
21 <MSBuild Projects="@(ProjectToBuild)" Targets="Rebuild" Properties="Configuration=Release" />
22
23 </Target>
24
25 <Target Name="deploy" DependsOnTargets="releasebuild">
26
27 <MakeDir Directories="$(DeployPath)" Condition="!Exists('$(DeployPath)')" />
28 <MakeDir Directories="$(DeployTmp)" Condition="!Exists('$(DeployTmp)')" />
29
30 <ItemGroup>
31 <CollectFiles Include="$(MSBuildProjectDirectory)\source\MongoDB\bin\Debug\*.dll" />
32 <CollectFiles Include="$(MSBuildProjectDirectory)\source\MongoDB\bin\Debug\*.xml" />
33 <CollectFiles Include="$(MSBuildProjectDirectory)\source\MongoDB.GridFS\bin\Debug\*.dll" />
34 <CollectFiles Include="$(MSBuildProjectDirectory)\source\MongoDB.GridFS\bin\Debug\*.xml" />
35 <CollectFiles Include="$(MSBuildProjectDirectory)\LICENSE" />
36 <CollectFiles Include="$(MSBuildProjectDirectory)\README.rst" />
37 </ItemGroup>
38
39 <Copy SourceFiles="@(CollectFiles)" DestinationFolder="$(DeployTmp)" />
40
41 <ItemGroup>
42 <DeployFiles Include="$(DeployTmp)\**\*.*" />
43 </ItemGroup>
44
45 <Zip Files="@(DeployFiles)"
46 WorkingDirectory="$(DeployTmp)"
47 ZipFileName="$(DeployPath)\MongoDB-CSharp.zip"
48 ZipLevel="9" />
49
50 <RemoveDir Directories="$(DeployTmp)" />
51 </Target>
52
53 </Project>
Something went wrong with that request. Please try again.