|
19 | 19 | <MSBuild Projects="@(_DependentProject)" Targets="Build" BuildInParallel="$(BuildInParallel)" StopOnFirstFailure="true" />
|
20 | 20 | </Target>
|
21 | 21 |
|
| 22 | + &
8000
lt;Target Name="PrepareInnerClone"> |
| 23 | + <ItemGroup> |
| 24 | + <RepoFileToCopy Include="$(OriginalProjectDirectory)**\*" |
| 25 | + Exclude="$(OriginalProjectDirectory)artifacts\**\*" /> |
| 26 | + </ItemGroup> |
| 27 | + |
| 28 | + <Copy SourceFiles="@(RepoFileToCopy)" DestinationFolder="$(ProjectDirectory)%(RecursiveDir)" SkipUnchangedFiles="true" /> |
| 29 | + </Target> |
| 30 | + |
22 | 31 | <Target Name="ApplyPatches"
|
23 | 32 | Condition="'@(PatchToApply)' != '' and '$(SkipPatches)' != 'true'"
|
| 33 | + DependsOnTargets="PrepareInnerClone" |
24 | 34 | Inputs="@(PatchToApply)"
|
25 | 35 | Outputs="$(BaseIntermediateOutputPath)ApplyPatches.complete" >
|
26 | 36 | <PropertyGroup>
|
|
101 | 111 | <!-- Root target for nuget updates. Removes the existing nuget config files, then adds a new one for dependencies
|
102 | 112 | if necessary. -->
|
103 | 113 | <Target Name="UpdateNuGetConfig"
|
104 |
| - DependsOnTargets="RemoveNuGetConfig;AddNewNuGetConfigForDependencies" |
| 114 | + DependsOnTargets="PrepareInnerClone;RemoveNuGetConfig;AddNewNuGetConfigForDependencies" |
105 | 115 | Condition="'$(NuGetConfigFile)' != '' OR '@(NuGetConfigFiles)' != '' OR '@(RepositoryReference)' != ''"
|
106 | 116 | Inputs="$(MSBuildProjectFullPath)"
|
107 | 117 | Outputs="$(BaseIntermediateOutputPath)UpdateNuGetConfig.complete">
|
|
114 | 124 |
|
115 | 125 | <UsingTask TaskName="UpdateJson" AssemblyFile="$(XPlatSourceBuildTasksAssembly)" TaskFactory="TaskHostFactory" />
|
116 | 126 | <Target Name="UpdateGlobalJsonVersions"
|
117 |
| - DependsOnTargets="ResolveProjectReferences" |
| 127 | + DependsOnTargets="PrepareInnerClone;ResolveProjectReferences" |
118 | 128 | Condition="'$(GlobalJsonFile)' != ''"
|
119 | 129 | Inputs="$(MSBuildProjectFullPath)"
|
120 | 130 | Outputs="$(BaseIntermediateOutputPath)UpdateGlobalJsonVersions.complete">
|
|
139 | 149 | </Target>
|
140 | 150 |
|
141 | 151 | <Target Name="RepoBuild"
|
142 |
| - DependsOnTargets="PrepareOutputDirectories" |
| 152 | + DependsOnTargets="PrepareOutputDirectories;PrepareInnerClone" |
143 | 153 | Inputs="$(MSBuildProjectFullPath)"
|
144 | 154 | Outputs="$(BaseIntermediateOutputPath)RepoBuild.complete">
|
145 | 155 | <ItemGroup>
|
|
180 | 190 |
|
181 | 191 | <Target Name="Package"
|
182 | 192 | Condition="'$(BuildPackagesCommand)' != ''"
|
183 |
| - DependsOnTargets="PrepareOutputDirectories" |
| 193 | + DependsOnTargets="PrepareOutputDirectories;PrepareInnerClone" |
184 | 194 | Inputs="$(MSBuildProjectFullPath)"
|
185 | 195 | Outputs="$(BaseIntermediateOutputPath)Package.complete">
|
186 | 196 | <Message Importance="High" Text="[$([System.DateTime]::Now.ToString('HH:mm:ss.ff'))] Packaging '$(RepositoryName)'" />
|
|
218 | 228 | <Target Name="Build"
|
219 | 229 | DependsOnTargets="
|
220 | 230 | BuildRepoReferences;
|
| 231 | + PrepareInnerClone; |
221 | 232 | ApplyPatches;
|
222 | 233 | UpdateNuGetConfig;
|
223 | 234 | UpdateGlobalJsonVersions;
|
|
0 commit comments