| 1 |
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> |
| 2 |
<PropertyGroup> |
| 3 |
<WebApplicationOutputDir Condition="'$(OutDir)' != '$(OutputPath)'">$(OutDir)_PublishedWebsites\$(MSBuildProjectName)</WebApplicationOutputDir> |
| 4 |
|
| 5 |
<PrepareForRunDependsOn> |
| 6 |
$(PrepareForRunDependsOn); |
| 7 |
_CopyWebApplication |
| 8 |
</PrepareForRunDependsOn> |
| 9 |
</PropertyGroup> |
| 10 |
|
| 11 |
<!-- OutDir has been overridden, so copy all the relevant files to that --> |
| 12 |
<Target Name="_CopyWebApplication" Condition="'$(OutDir)' != '$(OutputPath)'"> |
| 13 |
<MakeDir Directories="$(WebApplicationOutputDir)\bin"/> |
| 14 |
<Copy SourceFiles="@(IntermediateAssembly)" DestinationFolder="$(WebApplicationOutputDir)\bin" SkipUnchangedFiles="true"/> |
| 15 |
<Copy |
| 16 |
SourceFiles="$(IntermediateOutputPath)$(AssemblyName)$(TargetExt).mdb" |
| 17 |
Condition="Exists('$(IntermediateOutputPath)$(AssemblyName)$(TargetExt).mdb')" |
| 18 |
DestinationFolder="$(WebApplicationOutputDir)\bin" |
| 19 |
SkipUnchangedFiles="true" /> |
| 20 |
|
| 21 |
<Copy |
| 22 |
SourceFiles = "@(IntermediateSatelliteAssemblies)" |
| 23 |
DestinationFiles = "@(IntermediateSatelliteAssemblies->'$(WebApplicationOutputDir)\bin\%(Culture)\$(AssemblyName).resources.dll')" |
| 24 |
Condition = "'@(IntermediateSatelliteAssemblies)' != ''" |
| 25 |
SkipUnchangedFiles="true" /> |
| 26 |
|
| 27 |
<!-- Copy the referenced assemblies --> |
| 28 |
<Copy SourceFiles="@(ReferenceCopyLocalPaths)" DestinationFolder="$(WebApplicationOutputDir)\bin" SkipUnchangedFiles="true" /> |
| 29 |
<Copy SourceFiles="@(Content)" DestinationFolder="$(WebApplicationOutputDir)\%(Content.RelativeDir)" /> |
| 30 |
</Target> |
| 31 |
</Project> |