Files
OurUmbraco/ci.proj
T

48 lines
1.8 KiB
XML
Raw Normal View History

2012-12-18 16:35:11 +01:00
<Project DefaultTargets="TransformWebConfig" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
2012-12-18 16:48:20 +01:00
<UsingTask TaskName="TransformXml" AssemblyFile="$(ProjectPath)dependencies\Microsoft.Web.Publishing.Tasks.dll"/>
2012-12-18 16:35:11 +01:00
2012-12-18 16:48:20 +01:00
<PropertyGroup>
<ProjectPath>.\</ProjectPath>
<SourceDirectory>.\OurUmbraco.Site\</SourceDirectory>
<DestinationDirectory>C:\inetpub\wwwroot\CI\OurUmbraco\</DestinationDirectory>
</PropertyGroup>
2012-12-18 16:35:11 +01:00
2012-12-18 16:48:20 +01:00
<Target Name="CopyFiles">
<CreateItem Include="$(SourceDirectory)\**\*.*">
<Output TaskParameter="Include" ItemName="AllFiles" />
</CreateItem>
<Copy
SourceFiles="@(AllFiles)"
DestinationFiles="@(AllFiles->'$(DestinationDirectory)\%(RecursiveDir)%(Filename)%(Extension)')"
SkipUnchangedFiles="true"
2012-12-18 16:35:11 +01:00
/>
2012-12-18 16:48:20 +01:00
</Target>
<Target Name="TransformWebConfig" DependsOnTargets="CopyFiles">
<PropertyGroup>
<Environment>CI</Environment>
<WebConfigTransformInputFile>$(SourceDirectory)web.config</WebConfigTransformInputFile>
<WebConfigTransformFile>$(DestinationDirectory)ConfigTransforms\Web.$(Environment).config</WebConfigTransformFile>
<WebConfigTransformOutputFolder>$(ProjectPath)dependencies\$(Environment)</WebConfigTransformOutputFolder>
<StackTraceEnabled>False</StackTraceEnabled>
2012-12-18 16:35:11 +01:00
</PropertyGroup>
2012-12-18 16:48:20 +01:00
<MakeDir Directories="$(WebConfigTransformOutputFolder)"/>
<TransformXml Source="$(WebConfigTransformInputFile)"
Transform="$(WebConfigTransformFile)"
Destination="$(WebConfigTransformOutputFolder)\Web.config"
StackTrace="$(StackTraceEnabled)" />
2012-12-18 17:08:04 +01:00
<Copy
SourceFiles="$(WebConfigTransformOutputFolder)\Web.config"
DestinationFiles="$(DestinationDirectory)\Web.config"
/>
2012-12-18 16:48:20 +01:00
</Target>
2012-12-18 16:35:11 +01:00
</Project>