Skip to content
This repository has been archived by the owner on Mar 20, 2019. It is now read-only.

Commit

Permalink
Build system can now generate .zip OR .7z on demand given a build pro…
Browse files Browse the repository at this point in the history
…perty.
  • Loading branch information
AArnott committed Dec 23, 2010
1 parent 4ac8028 commit 85a4505
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion doc/doc.proj
Expand Up @@ -24,7 +24,7 @@

<Target Name="PrepareForPublish" DependsOnTargets="BuildProduct;Html">
<PropertyGroup>
<DocZip>$(DropDirectoryNoSlash)-htmldoc.7z</DocZip>
<DocZip>$(DropDirectoryNoSlash)-htmldoc$(ZipFormat)</DocZip>
</PropertyGroup>

<ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion samples/Samples.proj
Expand Up @@ -58,7 +58,7 @@

<Target Name="PrepareForPublish" DependsOnTargets="Build">
<PropertyGroup>
<SamplesZip>$(DropDirectoryNoSlash)-samples.7z</SamplesZip>
<SamplesZip>$(DropDirectoryNoSlash)-samples$(ZipFormat)</SamplesZip>
</PropertyGroup>

<ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion samples/tools.proj
Expand Up @@ -47,7 +47,7 @@

<Target Name="Build" DependsOnTargets="Layout" Returns="@(RedistributableFiles)">
<PropertyGroup>
<ToolsZip>$(ToolsDirectoryNoSlash).7z</ToolsZip>
<ToolsZip>$(ToolsDirectoryNoSlash)$(ZipFormat)</ToolsZip>
</PropertyGroup>
<ItemGroup>
<RedistributableFiles Include="$(ToolsZip)">
Expand Down
1 change: 1 addition & 0 deletions tools/DotNetOpenAuth.props
Expand Up @@ -12,6 +12,7 @@
<ToolsDir>$(ProjectRoot)tools\</ToolsDir>
<ZipLevel>6</ZipLevel>
<Zip7ToolPath>$(ToolsDir)7-Zip.x86\</Zip7ToolPath>
<ZipFormat Condition=" '$(ZipFormat)' == '' ">.7z</ZipFormat>
<ClrVersion Condition=" '$(TargetFrameworkVersion)' == 'v4.0' ">4</ClrVersion>
<ClrVersion Condition=" '$(TargetFrameworkVersion)' != 'v4.0' ">2</ClrVersion>

Expand Down
2 changes: 1 addition & 1 deletion tools/drop.proj
Expand Up @@ -150,7 +150,7 @@

<Target Name="Build" DependsOnTargets="Layout" Returns="@(RedistributableFiles)">
<PropertyGroup>
<DropZip>$(DropDirectoryNoSlash).7z</DropZip>
<DropZip>$(DropDirectoryNoSlash)$(ZipFormat)</DropZip>
</PropertyGroup>
<ItemGroup>
<RedistributableFiles Include="$(DropZip)">
Expand Down

0 comments on commit 85a4505

Please sign in to comment.