views:

25

answers:

1

We already have build scripts that creates our web application folders very nicely. We create multiple folders for each environment, and then change the configs in those folders according to the environment.

How can we get the same results as what _CopyWebApplication does?

Example:

<MSBuild Projects="$(SourceCodeCheckoutFolder)\source\UI\$(ProjectName)\$(ProjectName).csproj"   
         Targets="ResolveReferences; ResolveProjectReferences;_CopyWebApplication"
         ToolsVersion="3.5" 
         StopOnFirstFailure="False" 
         RunEachTargetSeparately="False"  
</MSBuild>
A: 

It seems that there is no such a thing. And that most people just use the Copy tasks in msbuild

<Target Name="CreateFolderAndCopyCompiledCode">
 <ItemGroup>
    <FilesToCopy Include="SourceOfCompilation\\*.*" />
 </ItemGroup>
 <MakeDir Directories="CodeDestination">
  <Output TaskParameter="DirectoriesCreated" PropertyName="BuildOutputDir" />
</MakeDir>
<Copy SourceFiles="@(FilesToCopy)" DestinationFolder="CodeDestination" ContinueOnError="True" /></Target>
Rihan Meij