|
5 | 5 | <Import Project="SharedFx.targets" />
|
6 | 6 | <Import Project="SharedFxInstaller.targets" />
|
7 | 7 | <Import Project="Publish.targets" />
|
8 |
| - |
9 |
| - <!-- Workaround for #1014 --> |
10 |
| - <Import Project="buildorder.props" Condition="$([MSBuild]::IsOSUnixLike())" /> |
| 8 | + <Import Project="buildorder.props" /> |
11 | 9 |
|
12 | 10 | <PropertyGroup>
|
13 | 11 | <GeneratedPackageVersionPropsPath>$(IntermediateDir)dependencies.g.props</GeneratedPackageVersionPropsPath>
|
|
67 | 65 | </ItemGroup>
|
68 | 66 | </Target>
|
69 | 67 |
|
70 |
| - <Target Name="ResolveRepoInfo" DependsOnTargets="_ResolveProjectArtifactsInfoShipped;_PrepareRepositories;GetMetapackageArtifactInfo;GetLineupPackageInfo"> |
| 68 | + <Target Name="ResolveRepoInfo" DependsOnTargets="_ResolveProjectArtifactsInfoShipped;_PrepareRepositories;GetMetapackageArtifactInfo"> |
71 | 69 | <!-- We need to pass the NETCoreApp package versions to msbuild so that it doesn't complain about us using a different one than it was restored against. -->
|
72 | 70 | <PropertyGroup>
|
73 | 71 | <DesignTimeBuildProps>MicrosoftNETCoreAppPackageVersion=$(MicrosoftNETCoreAppPackageVersion);</DesignTimeBuildProps>
|
|
154 | 152 | <Error Text="No solutions were found in '$(SubmoduleRoot)'. Did you forget to clone the submodules? Run `git submodule update --init`." Condition="@(Solution->Count()) == 0" />
|
155 | 153 | </Target>
|
156 | 154 |
|
157 |
| - <Target Name="GetLineupPackageInfo"> |
158 |
| - <ItemGroup> |
159 |
| - <ArtifactInfo Include="$(BuildDir)Internal.AspNetCore.Universe.Lineup.$(PackageVersion).nupkg"> |
160 |
| - <ArtifactType>NuGetPackage</ArtifactType> |
161 |
| - <PackageId>Internal.AspNetCore.Universe.Lineup</PackageId> |
162 |
| - <Version>$(PackageVersion)</Version> |
163 |
| - <Category>noship</Category> |
164 |
| - <IsLineup>true</IsLineup> |
165 |
| - </ArtifactInfo> |
166 |
| - </ItemGroup> |
167 |
| - </Target> |
168 |
| - |
169 | 155 | <Target Name="GeneratePropsFiles" DependsOnTargets="PrepareOutputPaths;GetArtifactInfo">
|
170 | 156 | <ItemGroup>
|
171 | 157 | <_LineupPackages Include="@(ExternalDependency)" />
|
|
209 | 195 | <WriteLinesToFile File="$(GeneratedBrandingPropsPath)" Overwrite="true" Lines="$(BrandingPropsContent)"/>
|
210 | 196 |
|
211 | 197 | <Copy SourceFiles="$(GeneratedPackageVersionPropsPath);$(GeneratedBrandingPropsPath)" DestinationFolder="$(ArtifactsDir)" />
|
212 |
| - |
213 |
| - <PackNuSpec NuSpecPath="$(MSBuildThisFileDirectory)lineups\Internal.AspNetCore.Universe.Lineup.nuspec" |
214 |
| - DestinationFolder="$(BuildDir)" |
215 |
| - Overwrite="true" |
216 |
| - Properties="version=$(PackageVersion);dependenciesPropsFile=$(GeneratedPackageVersionPropsPath);brandingPropsFile=$(GeneratedBrandingPropsPath)"> |
217 |
| - <Output TaskParameter="Packages" ItemName="LineupPackage" /> |
218 |
| - </PackNuSpec> |
219 | 198 | </Target>
|
220 | 199 |
|
221 | 200 | <Target Name="CleanRepoArtifacts">
|
222 | 201 | <RemoveDir Directories="$(RepositoryRoot)obj" Condition="Exists('$(RepositoryRoot)obj')" />
|
223 | 202 | </Target>
|
224 | 203 |
|
225 | 204 | <Target Name="_PrepareRepositories">
|
226 |
| - <ItemGroup Condition="'$(KOREBUILD_REPOSITORY_INCLUDE)'!=''"> |
227 |
| - <_RepositoriesToInclude Include="$(KOREBUILD_REPOSITORY_INCLUDE)" /> |
228 |
| - <Repository Update="@(Repository)" Build="false" /> |
229 |
| - <Repository |
230 |
| - Update="@(Repository)" |
231 |
| - Condition="'@(Repository)'=='@(_RepositoriesToInclude)' AND '%(Identity)'!=''" |
232 |
| - Build="true" /> |
233 |
| - </ItemGroup> |
234 |
| - |
235 |
| - <ItemGroup Condition="'$(KOREBUILD_REPOSITORY_EXCLUDE)'!=''"> |
236 |
| - <_RepositoriesToExclude Include="$(KOREBUILD_REPOSITORY_EXCLUDE)" /> |
237 |
| - <Repository |
238 |
| - Update="@(Repository)" |
239 |
| - Condition="'@(Repository)'=='@(_RepositoriesToExclude)' AND '%(Identity)'!=''" |
240 |
| - Build="false" /> |
241 |
| - </ItemGroup> |
242 |
| - |
243 |
| - <Error Text="KOREBUILD_REPOSITORY_EXCLUDE AND KOREBUILD_REPOSITORY_INCLUDE are specified." |
244 |
| - Condition="'$(KOREBUILD_REPOSITORY_INCLUDE)' != '' AND '$(KOREBUILD_REPOSITORY_EXCLUDE)' != ''" /> |
245 |
| - |
246 | 205 | <ItemGroup>
|
247 | 206 | <Repository Update="%(Identity)" RootPath="$(SubmoduleRoot)%(Identity)\" Condition="'%(Identity)' != '' AND '%(RootPath)' == ''" />
|
248 | 207 | <ShippedRepository Update="%(Identity)" RootPath="$(SubmoduleRoot)%(Identity)\" Condition="'%(Identity)' != '' AND '%(RootPath)' == ''" />
|
|
252 | 211 | <Target Name="BuildRepositories"
|
253 | 212 | DependsOnTargets="_PrepareRepositories;GeneratePropsFiles;ComputeGraph;_BuildRepositories" />
|
254 | 213 |
|
255 |
| - <Target Name="ListExpectedPackages" DependsOnTargets="GetProjectArtifactInfo;ResolveRepoInfo"> |
| 214 | + <Target Name="ListExpectedPackages" DependsOnTargets="ResolveSharedSourcesPackageInfo;GetProjectArtifactInfo;ResolveRepoInfo"> |
256 | 215 | <WriteLinesToFile File="$(RepositoryRoot)artifacts\packages.csv" Lines="PackageId,Version;@(ArtifactInfo->WithMetadataValue('ArtifactType', 'NuGetPackage')->'%(PackageId),%(Version)')" Overwrite="true" />
|
257 | 216 | </Target>
|
258 | 217 |
|
259 | 218 | <Target Name="ComputeGraph" DependsOnTargets="ResolveSharedSourcesPackageInfo;GetProjectArtifactInfo;ResolveRepoInfo;GeneratePropsFiles">
|
260 |
| - <RepoTasks.CheckRepoGraph Condition=" ! $([MSBuild]::IsOSUnixLike())" |
261 |
| - Solutions="@(Solution)" |
262 |
| - Artifacts="@(ArtifactInfo);@(ShippedArtifactInfo)" |
263 |
| - Repositories="@(Repository);@(ShippedRepository)" |
264 |
| - Properties="Configuration=$(Configuration);BuildNumber=$(BuildNumber);DotNetPackageVersionPropsPath=$(GeneratedPackageVersionPropsPath);DotNetRestoreSourcePropsPath=$(GeneratedRestoreSourcesPropsPath);InternalAspNetCoreSdkPackageVersion=$(InternalAspNetCoreSdkPackageVersion)" /> |
265 |
| - |
266 | 219 | <ItemGroup>
|
267 | 220 | <_UndeclaredPackageArtifact Include="%(ArtifactInfo.PackageId)" Condition="'%(ArtifactInfo.ArtifactType)' == 'NuGetPackage'" />
|
268 | 221 | <_UndeclaredPackageArtifact Remove="@(PackageArtifact)" />
|
| 222 | + <RepositoryBuildOrder Remove="@(ShippedRepository)" /> |
269 | 223 | </ItemGroup>
|
270 | 224 |
|
271 | 225 | <Error Text="Undeclared package artifacts. Add these to artifacts.props:%0A - @(_UndeclaredPackageArtifact, '%0A - ')"
|
272 | 226 | Condition=" @(_UndeclaredPackageArtifact->Count()) != 0 " />
|
273 | 227 |
|
274 |
| - <!-- Skipped to workaround #1014. The order is hardcoded in buildorder.props --> |
275 |
| - <RepoTasks.AnalyzeBuildGraph Condition=" ! $([MSBuild]::IsOSUnixLike())" |
276 |
| - Solutions="@(Solution)" |
277 |
| - Artifacts="@(ArtifactInfo);@(ShippedArtifactInfo)" |
278 |
| - Repositories="@(Repository);@(ShippedRepository)" |
279 |
| - Dependencies="@(ExternalDependency)" |
280 |
| - StartGraphAt="$(BuildGraphOf)" |
281 |
| - Properties="Configuration=$(Configuration);BuildNumber=$(BuildNumber);DotNetPackageVersionPropsPath=$(GeneratedPackageVersionPropsPath);DotNetRestoreSourcePropsPath=$(GeneratedRestoreSourcesPropsPath);InternalAspNetCoreSdkPackageVersion=$(InternalAspNetCoreSdkPackageVersion)"> |
282 |
| - <Output TaskParameter="RepositoryBuildOrder" ItemName="RepositoryBuildOrder" /> |
283 |
| - </RepoTasks.AnalyzeBuildGraph> |
284 |
| - |
285 | 228 | <Message Text="Repository build order:" Importance="high" />
|
286 | 229 | <Message Text="%(RepositoryBuildOrder.Order). @(RepositoryBuildOrder, ', ')" Importance="high" />
|
287 | 230 | </Target>
|
|
0 commit comments