Created
July 11, 2016 13:50
-
-
Save carlwoodhouse/9ebf39fbacda19a308f7767b93acfd14 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | |
<PropertyGroup> | |
<Configuration Condition="$(Configuration) == ''">Release</Configuration> | |
<DeploymentLocation>$(MSBuildProjectDirectory)\Packages</DeploymentLocation> | |
</PropertyGroup> | |
<Import Project="$(MSBuildProjectDirectory)\SlowCheetah\SlowCheetah.Transforms.targets"/> | |
<Import Project="$(MSBuildProjectDirectory)\MsBuildTasks\MSBuild.Community.Tasks.Targets"/> | |
<Target Name ="Build"> | |
<CallTarget Targets="Cleanup"/> | |
<CallTarget Targets="Orchard"/> | |
<CallTarget Targets="Forums"/> | |
<CallTarget Targets="Auth"/> | |
</Target> | |
<Target Name="Cleanup"> | |
<RemoveDir Directories="$(DeploymentLocation);"/> | |
<MakeDir Directories="$(DeploymentLocation);"/> | |
</Target> | |
<Target Name="Orchard"> | |
<PropertyGroup> | |
<OrchardLocation>$(MSBuildProjectDirectory)\Source\Orchard</OrchardLocation> | |
</PropertyGroup> | |
<Exec Command=""$(OrchardLocation)\Content\bin\Orchard.exe" "@$(MSBuildProjectDirectory)\AssetCommands\AssetShellCommands.$(Configuration).txt"" /> | |
<Copy | |
SourceFiles="MsDeploy\parameters.xml" | |
DestinationFiles="$(OrchardLocation)\parameters.xml" /> | |
<Copy | |
SourceFiles="MsDeploy\manifest.xml" | |
DestinationFiles="$(OrchardLocation)\manifest.xml" /> | |
<Copy | |
SourceFiles="Transforms\Orchard\robots.$(Configuration).txt" | |
DestinationFiles="$(OrchardLocation)\Content\robots.txt" /> | |
<TransformXml | |
Source="$(OrchardLocation)\Content\Web.Config" | |
Transform="Transforms\Orchard\Web.$(Configuration).Config" | |
Destination="$(OrchardLocation)\Content\Web.Config" /> | |
<TransformXml | |
Source="$(OrchardLocation)\Content\Config\Host.Config" | |
Transform="Transforms\Orchard\Host.$(Configuration).Config" | |
Destination="$(OrchardLocation)\Content\Config\Host.Config" /> | |
<TransformXml | |
Source="$(OrchardLocation)\Content\Config\HostComponents.Config" | |
Transform="Transforms\Orchard\HostComponents.$(Configuration).Config" | |
Destination="$(OrchardLocation)\Content\Config\HostComponents.Config" /> | |
<TransformXml | |
Source="$(OrchardLocation)\Content\Config\log4net.Config" | |
Transform="Transforms\Orchard\log4net.$(Configuration).Config" | |
Destination="$(OrchardLocation)\Content\Config\log4net.Config" /> | |
<!-- delete the app data from the asset upload --> | |
<ItemGroup> | |
<OrchardAppData Include="$(OrchardLocation)\Content\App_Data\**\*.*" /> | |
</ItemGroup> | |
<Delete Files="@(OrchardAppData)" /> | |
<Copy | |
SourceFiles="Settings\Orchard\$(Configuration)\Settings.txt" | |
DestinationFiles="$(OrchardLocation)\Content\App_Data\Sites\Default\Settings.txt" /> | |
<ItemGroup> | |
<OrchardSource Include="$(OrchardLocation)\**\*.*" /> | |
</ItemGroup> | |
<Zip Files="@(OrchardSource)" WorkingDirectory="$(OrchardLocation)" ZipFileName="$(DeploymentLocation)\Orchard.zip" /> | |
</Target> | |
<Target Name="Forums"> | |
<PropertyGroup> | |
<ForumsLocation>$(MSBuildProjectDirectory)\Source\Forums</ForumsLocation> | |
</PropertyGroup> | |
<Copy | |
SourceFiles="MsDeploy\parameters.xml" | |
DestinationFiles="$(ForumsLocation)\parameters.xml" /> | |
<Copy | |
SourceFiles="MsDeploy\manifest.xml" | |
DestinationFiles="$(ForumsLocation)\manifest.xml" /> | |
<TransformXml | |
Source="$(ForumsLocation)\Content\Web.Config" | |
Transform="Transforms\Forums\Web.$(Configuration).Config" | |
Destination="$(ForumsLocation)\Content\Web.Config" /> | |
<ItemGroup> | |
<ForumsSource Include="$(ForumsLocation)\**\*.*" /> | |
</ItemGroup> | |
<Zip Files="@(ForumsSource)" WorkingDirectory="$(ForumsLocation)" ZipFileName="$(DeploymentLocation)\Forums.zip" /> | |
</Target> | |
<Target Name="Auth"> | |
<PropertyGroup> | |
<AuthLocation>$(MSBuildProjectDirectory)\Source\Auth</AuthLocation> | |
</PropertyGroup> | |
<Copy | |
SourceFiles="MsDeploy\parameters.xml" | |
DestinationFiles="$(AuthLocation)\parameters.xml" /> | |
<Copy | |
SourceFiles="MsDeploy\manifest.xml" | |
DestinationFiles="$(AuthLocation)\manifest.xml" /> | |
<TransformXml | |
Source="$(AuthLocation)\Content\Web.Config" | |
Transform="Transforms\Auth\Web.$(Configuration).Config" | |
Destination="$(AuthLocation)\Content\Web.Config" /> | |
<ItemGroup> | |
<AuthSource Include="$(AuthLocation)\**\*.*" /> | |
</ItemGroup> | |
<Zip Files="@(AuthSource)" WorkingDirectory="$(AuthLocation)" ZipFileName="$(DeploymentLocation)\Auth.zip" /> | |
</Target> | |
</Project> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment