Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion eng/Packaging.props
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,14 @@
<PackageConfigurations>$(BuildConfigurations)</PackageConfigurations>
</PropertyGroup>

<Import Condition="Exists('../pkg/baseline/baseline.props') AND '$(MSBuildProjectExtension)' == '.pkgproj'" Project="../pkg/baseline/baseline.props" />
<Import Condition="'$(MSBuildProjectExtension)' == '.pkgproj'" Project="../pkg/Microsoft.Private.PackageBaseline/Microsoft.Private.PackageBaseline.props" />

<PropertyGroup>
<!-- Set PackageIndexFile to point to our local repo's index. This tells the packaging targets
which index should be used for updates -->
<PackageIndexFile>$(MSBuildThisFileDirectory)../pkg/Microsoft.Private.PackageBaseline/packageIndex.json</PackageIndexFile>
</PropertyGroup>

<PropertyGroup Condition="'$(OsEnvironment)'=='Unix'">
<!--
Building packages fails for two reasons.
Expand Down
18 changes: 17 additions & 1 deletion eng/Packaging.targets
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,23 @@
'$(_excludeCompile)' == 'true' AND
'%(Dependency.Identity)' != '_._'" />
</Target>


<Target Name="BlockStable" Condition="'$(BlockStable)' == 'true'" AfterTargets="CalculatePackageVersion">
<!-- DO NOT ship this packages as stable -->
<Error Condition="!$(PackageVersion.Contains('-'))" Text="Package $(Id) should not be built stable" />
</Target>

<!-- Get the package version without pre-release -->
<Target Name="GetPackageIdentityWithoutPrerelease"
Returns="@(_PackageIdentityWithoutPrerelease)">
<ItemGroup>
<_PackageIdentityWithoutPrerelease Include="$(Id)">
<Version>$(PackageVersion)</Version>
<BlockStable>$(BlockStable)</BlockStable>
</_PackageIdentityWithoutPrerelease>
</ItemGroup>
</Target>

<PropertyGroup>
<VersionSuffix>$(_PreReleaseLabel)$(_BuildNumberLabels)</VersionSuffix>
</PropertyGroup>
Expand Down
3 changes: 1 addition & 2 deletions external/harvestPackages/harvestPackages.depproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
<TargetFramework>netstandard2.0</TargetFramework>
</PropertyGroup>

<Import Project="$(RepoRoot)pkg/baseline/baseline.props" />

<!-- only restore this project during the build, don't copy any of it's packages
The sole purpose of this project is to download packages that can be examined
Expand All @@ -17,7 +16,7 @@
</_AllPkgProjs>
</ItemGroup>

<MSBuild Projects="@(_AllPkgProjs)" Targets="GetPackageIdentityIfStable" Properties="$(ProjectProperties)">
<MSBuild Projects="@(_AllPkgProjs)" Targets="GetPackageIdentityWithoutPrerelease" Properties="$(ProjectProperties)">
<Output TaskParameter="TargetOutputs" ItemName="_AllPkgProjsWithVersion" />
</MSBuild>
</Target>
Expand Down
1 change: 1 addition & 0 deletions pkg/Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
For offline builds we still set OfficialBuildId but we need to build all the packages for a single
leg only, so we also take DotNetBuildFromSource into account. -->
<BuildingAnOfficialBuildLeg Condition="'$(BuildingAnOfficialBuildLeg)' == '' AND '$(OfficialBuildId)' != '' AND '$(DotNetBuildFromSource)' != 'true'">true</BuildingAnOfficialBuildLeg>
<HarvestStablePackage>false</HarvestStablePackage>
</PropertyGroup>

<!-- Packages opt-in to automatic RID-specific builds by placing a *.RID.props next to their project
Expand Down
29 changes: 0 additions & 29 deletions pkg/baseline/baseline.props

This file was deleted.

Loading