さまざまなソリューションをビルドし、Web配置プロジェクトの出力を次のように2つのサブフォルダーを持つ宛先フォルダーにコピーするMsBuildプロジェクトがあります。
WDP出力フォルダーは、BuildFolderの「リリース」からコピーされます。
DestFolder / PresentationTier / MyProject.xxx0Services_deploy / ** Release ** / Files .. .. DestFolder / MidTier / MyProject.xx1UI_deploy / ** Release ** / Files .. ..
$(Configuration)
これは機能しますが、出力から値を削除したいと思います。
したがって、必要な出力フォルダのレイアウトは次のようになります。
DestFolder / PresentationTier / MyProject.xxx0Services_deploy / Files .. .. DestFolder / MidTier / MyProject.xx1UI_deploy / Files .. ..
「リリース」フォルダの削除に注意してください
私のコードは以下の通りです。
これを変更して、希望するものを提供するにはどうすればよいですか。
コードの抜粋は次のとおりです
<Target Name="CopyMidTierBuildOutput" DependsOnTargets="CopyPresentationTierBuildOutput" >
<Message Text="Copying midTier Build Output=================" />
<CreateItem Include="$(DeploymentRoot)**/MyProject.xxx0Services_deploy/$(Configuration)/**/*.*;
$(DeploymentRoot)**/MyProject.xxx1Services.Host_deploy/$(Configuration)/**/*.*;
$(DeploymentRoot)**/MyProject.xxx2.Host.IIS.csproj_deploy/$(Configuration)/**/*.*;
$(DeploymentRoot)**/MyProject.xxx3Services_deploy/$(Configuration)/**/*.*;
$(DeploymentRoot)**/Nad.xxx4_deploy/$(Configuration)/**/*.*;
$(DeploymentRoot)**/Nad.xxx5Services.Host_deploy/$(Configuration)/**/*.*;
$(DeploymentRoot)**/Nad.xxx6Services.Host_deploy/$(Configuration)/**/*.*;
$(DeploymentRoot)**/Nad.xxx7Service.Host.IIS_deploy/$(Configuration)/**/*.*;
$(DeploymentRoot)**/Nad.xxx8Services.Host_deploy/$(Configuration)/**/*.*;
$(DeploymentRoot)**/Nad.xxx9Service.Host.IIS.csproj_deploy/$(Configuration)/**/*.*;
$(DeploymentRoot)**/Nad.xxx10Services.Host_deploy/$(Configuration)/**/*.*">
<Output TaskParameter="Include" ItemName="MidTierDeploys"/>
</CreateItem>
<Copy
SourceFiles="@(MidTierDeploys)"
DestinationFolder="$(DestFolder)/MidTier/%(RecursiveDir)" ContinueOnError="false" />