|
15 | 15 | </Project> |
16 | 16 | </ItemGroup> |
17 | 17 |
|
| 18 | + <!-- Need the PackageIndexFile file property from baseline.props --> |
| 19 | + <Import Project="../pkg/baseline/baseline.props" /> |
| 20 | + |
| 21 | + <UsingTask TaskName="UpdatePackageIndex" AssemblyFile="$(PackagingTaskDir)Microsoft.DotNet.Build.Tasks.Packaging.dll"/> |
| 22 | + |
| 23 | + <!-- |
| 24 | + Updates the package index to mark all packages we are building that can go stable as stable. |
| 25 | + this will allow for a kicked off build to control package stability at queue time. This does edit |
| 26 | + the package index in-place but that shouldn't cause any problems for official builds are the only |
| 27 | + ones that might do this. After we ship a stable set of packages this target should be run and the |
| 28 | + changes to the package index should be commited to the repo. |
| 29 | + --> |
| 30 | + <Target Name="UpdatePackageIndexWithStableVersions" |
| 31 | + BeforeTargets="BuildAllProjects" |
| 32 | + Condition="'$(IncludePreReleaseLabelInPackageVersion)' != 'true'"> |
| 33 | + <ItemGroup> |
| 34 | + <PkgProjects Include="$(MSBuildThisFileDirectory)..\pkg\*\*.pkgproj" /> |
| 35 | + <PkgProjects Include="*\pkg\**\*.pkgproj" /> |
| 36 | + </ItemGroup> |
| 37 | + |
| 38 | + <MSBuild Targets="GetPackageIdentityIfStable" |
| 39 | + BuildInParallel="$(BuildInParallel)" |
| 40 | + Projects="@(PkgProjects)"> |
| 41 | + <Output TaskParameter="TargetOutputs" |
| 42 | + ItemName="_StablePackages" /> |
| 43 | + </MSBuild> |
| 44 | + |
| 45 | + <Message Importance="high" Text="Marking package '%(_StablePackages.Identity)' stable with version '%(_StablePackages.Version)'" /> |
| 46 | + |
| 47 | + <UpdatePackageIndex |
| 48 | + PackageIndexFile="$(PackageIndexFile)" |
| 49 | + StablePackages="@(_StablePackages)" /> |
| 50 | + |
| 51 | + </Target> |
| 52 | + |
18 | 53 | <UsingTask TaskName="GenerateNetStandardSupportTable" AssemblyFile="$(PackagingTaskDir)Microsoft.DotNet.Build.Tasks.Packaging.dll" /> |
19 | 54 | <Target Name="GenerateNETStandardDocs"> |
20 | 55 | <Error Condition="'$(WcfPackageReportDir)' == ''" |
|
0 commit comments