Permalink
Browse files

Some fixes for Deploy.proj.

  • Loading branch information...
lanwin committed May 8, 2010
1 parent 1a0c9b0 commit 44fc7b201334e8acefa503d45b829c205605885f
Showing with 17 additions and 9 deletions.
  1. +15 −7 Deploy.proj
  2. +1 −1 source/MongoDB.GridFS/MongoDB.GridFS.csproj
  3. +1 −1 source/MongoDB/MongoDB.csproj
View
@@ -4,6 +4,7 @@
<PropertyGroup>
<MSBuildCommunityTasksPath>$(MSBuildProjectDirectory)\tools\MSBuild.Community.Tasks</MSBuildCommunityTasksPath>
+ <ExtensionTasksPath>$(MSBuildProjectDirectory)\tools\MSBuild.ExtensionPack</ExtensionTasksPath>
<DeployPath>$(MSBuildProjectDirectory)\deploy</DeployPath>
<DeployTmp>$(DeployPath)\tmp</DeployTmp>
<SourceProject>$(MSBuildProjectDirectory)\MongoDB-CSharp.sln</SourceProject>
@@ -17,21 +18,27 @@
<ProjectToBuild Include="$(MSBuildProjectDirectory)\source\MongoDB\MongoDB.csproj" />
<ProjectToBuild Include="$(MSBuildProjectDirectory)\source\MongoDB.GridFS\MongoDB.GridFS.csproj" />
</ItemGroup>
-
+
<MSBuild Projects="@(ProjectToBuild)" Targets="Rebuild" Properties="Configuration=Release" />
-
+
</Target>
<Target Name="deploy" DependsOnTargets="releasebuild">
+ <PropertyGroup>
+ <DeployFile>$(DeployPath)\MongoDB-CSharp.zip</DeployFile>
+ </PropertyGroup>
+
+ <Delete Files="$(DeployFile)" />
+
<MakeDir Directories="$(DeployPath)" Condition="!Exists('$(DeployPath)')" />
<MakeDir Directories="$(DeployTmp)" Condition="!Exists('$(DeployTmp)')" />
<ItemGroup>
- <CollectFiles Include="$(MSBuildProjectDirectory)\source\MongoDB\bin\Debug\*.dll" />
- <CollectFiles Include="$(MSBuildProjectDirectory)\source\MongoDB\bin\Debug\*.xml" />
- <CollectFiles Include="$(MSBuildProjectDirectory)\source\MongoDB.GridFS\bin\Debug\*.dll" />
- <CollectFiles Include="$(MSBuildProjectDirectory)\source\MongoDB.GridFS\bin\Debug\*.xml" />
+ <CollectFiles Include="$(MSBuildProjectDirectory)\source\MongoDB\bin\Release\*.xml" />
+ <CollectFiles Include="$(MSBuildProjectDirectory)\source\MongoDB\bin\Release\*.dll" />
+ <CollectFiles Include="$(MSBuildProjectDirectory)\source\MongoDB.GridFS\bin\Release\*.xml" />
+ <CollectFiles Include="$(MSBuildProjectDirectory)\source\MongoDB.GridFS\bin\Release\*.dll" />
<CollectFiles Include="$(MSBuildProjectDirectory)\LICENSE" />
<CollectFiles Include="$(MSBuildProjectDirectory)\README.rst" />
</ItemGroup>
@@ -44,10 +51,11 @@
<Zip Files="@(DeployFiles)"
WorkingDirectory="$(DeployTmp)"
- ZipFileName="$(DeployPath)\MongoDB-CSharp.zip"
+ ZipFileName="$(DeployFile)"
ZipLevel="9" />
<RemoveDir Directories="$(DeployTmp)" />
+
</Target>
</Project>
@@ -51,7 +51,7 @@
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>none</DebugType>
<Optimize>false</Optimize>
- <OutputPath>..\Release</OutputPath>
+ <OutputPath>bin\Release\</OutputPath>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<ConsolePause>false</ConsolePause>
@@ -71,7 +71,7 @@
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>none</DebugType>
<Optimize>false</Optimize>
- <OutputPath>..\Release</OutputPath>
+ <OutputPath>bin\Release\</OutputPath>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<ConsolePause>false</ConsolePause>

0 comments on commit 44fc7b2

Please sign in to comment.