forked from umbraco/OurUmbraco
-
Notifications
You must be signed in to change notification settings - Fork 0
/
live.proj
29 lines (24 loc) · 1.43 KB
/
live.proj
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<Project DefaultTargets="TransformWebConfig" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<ProjectPath>.\</ProjectPath>
<SourceDirectory>.\OurUmbraco.Site\</SourceDirectory>
<ProjectName>OurUmbraco</ProjectName>
<Environment>Live</Environment>
<DestinationDirectory>C:\inetpub\wwwroot\$(Environment)\$(ProjectName)\</DestinationDirectory>
<DeployHelperDirectory>$(ProjectPath)..\..\Deploy\</DeployHelperDirectory>
</PropertyGroup>
<UsingTask TaskName="TransformXml" AssemblyFile="$(DeployHelperDirectory)Microsoft.Web.Publishing.Tasks.dll"/>
<Target Name="TransformWebConfig">
<PropertyGroup>
<WebConfigTransformInputFile>$(SourceDirectory)web.config</WebConfigTransformInputFile>
<WebConfigTransformFile>$(DeployHelperDirectory)\$(ProjectName)\ConfigTransforms\Web.$(Environment).config</WebConfigTransformFile>
<WebConfigTransformOutputFolder>$(DeployHelperDirectory)\$(ProjectName)\$(Environment)\</WebConfigTransformOutputFolder>
<StackTraceEnabled>False</StackTraceEnabled>
</PropertyGroup>
<MakeDir Directories="$(WebConfigTransformOutputFolder)"/>
<TransformXml Source="$(WebConfigTransformInputFile)"
Transform="$(WebConfigTransformFile)"
Destination="$(WebConfigTransformOutputFolder)\Web.config"
StackTrace="$(StackTraceEnabled)" />
</Target>
</Project>