build/config.props (81 lines of code) (raw):
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="15.0">
<!-- Special project import for dotnet source build
The dotnet source-build Repo API overrides *PackageVersion properties with versions that were built before.
Those packages are injected in this props file
See: https://github.com/dotnet/source-build/blob/master/Documentation/auto-dependency-flow/api.md#-pdotnetpackageversionpropspathpath
-->
<Import Project="$(DotNetPackageVersionPropsPath)" Condition="'$(DotNetPackageVersionPropsPath)' != ''" />
<!-- Version -->
<PropertyGroup>
<!-- ** Change for each new version -->
<!-- when changing any of the NuGetVersion props below, run tools-local\ship-public-apis -->
<MajorNuGetVersion Condition="'$(MajorNuGetVersion)' == ''">7</MajorNuGetVersion>
<MinorNuGetVersion Condition="'$(MinorNuGetVersion)' == ''">3</MinorNuGetVersion>
<PatchNuGetVersion Condition="'$(PatchNuGetVersion)' == ''">0</PatchNuGetVersion>
<SemanticVersion Condition=" '$(SemanticVersion)' == '' ">$(MajorNuGetVersion).$(MinorNuGetVersion).$(PatchNuGetVersion)</SemanticVersion>
<!-- ** Change for each new preview/rc -->
<!-- Check the VS schedule and manually enter a preview number here that makes sense. -->
<!-- Preview 3 is typically the last "main branch" preview, so we start using rc at this time -->
<ReleaseLabel Condition=" '$(ReleaseLabel)' == '' ">preview.1</ReleaseLabel>
<IsEscrowMode Condition="'$(IsEscrowMode)' == ''">false</IsEscrowMode>
<!-- Visual Studio Insertion Logic -->
<VsTargetMajorVersion Condition="'$(VsTargetMajorVersion)' == ''">$([MSBuild]::Add(11, $(MajorNuGetVersion)))</VsTargetMajorVersion>
<VsTargetBranch Condition="'$(VsTargetBranch)' == '' And '$(IsEscrowMode)' != 'true'">main</VsTargetBranch>
<VsTargetChannel Condition="'$(VsTargetChannel)' == '' And '$(IsEscrowMode)' != 'true'">int.$(VsTargetBranch)</VsTargetChannel>
<VsTargetChannelForTests Condition="'$(VsTargetChannelForTests)' == '' And '$(IsEscrowMode)' != 'true'">int.$(VsTargetBranch)</VsTargetChannelForTests>
<!-- NuGet SDK VS package Semantic Version -->
<NuGetSdkVsSemanticVersion>$(VsTargetMajorVersion).$(MinorNuGetVersion).$(PatchNuGetVersion)</NuGetSdkVsSemanticVersion>
<!-- This branches are used for creating insertion PRs -->
<VsTargetBranch Condition="'$(VsTargetBranch)' == '' And '$(IsEscrowMode)' == 'true'">rel/d$(VsTargetMajorVersion).$(MinorNuGetVersion)</VsTargetBranch>
<VsTargetChannel Condition="'$(VsTargetChannel)' == '' And '$(IsEscrowMode)' == 'true'">int.d$(VsTargetMajorVersion).$(MinorNuGetVersion)</VsTargetChannel>
<!-- Run Apex/E2E tests on the target release branch -->
<VsTargetChannelForTests Condition="'$(VsTargetChannelForTests)' == '' And '$(IsEscrowMode)' == 'true'">$(VsTargetChannel)</VsTargetChannelForTests>
</PropertyGroup>
<PropertyGroup Condition=" '$(PreReleaseVersion)' == '' ">
<!-- This number is chosen to be higher than the assembly versions that the VMR-built NuGet uses, so that a dev build of NuGet can be patched over
the VMR build. -->
<PreReleaseVersion>65534</PreReleaseVersion>
</PropertyGroup>
<!--Setting the Pre-release/Build meta-data from CI if Version is set-->
<PropertyGroup Condition="'$(BuildNumber)' != ''">
<PreReleaseVersion>$(BuildNumber)</PreReleaseVersion>
</PropertyGroup>
<!--Setting the product information for Beta builds-->
<Choose>
<!-- If we aren't excluding the build number, use the release label and the build number. -->
<When Condition="'$(BuildRTM)' != 'true' AND '$(PreReleaseVersion)' != '' AND '$(PreReleaseVersion)' != '0' ">
<PropertyGroup>
<PreReleaseInformationVersion>-$(ReleaseLabel).$(PreReleaseVersion)</PreReleaseInformationVersion>
</PropertyGroup>
</When>
<!-- If we are excluding the build number, show the release label unless we are RTM. -->
<When Condition="'$(ReleaseLabel)' != 'rtm' AND '$(ReleaseLabel)' != 'svc' AND '$(ReleaseLabel)' != 'rc' ">
<PropertyGroup>
<PreReleaseInformationVersion>-$(ReleaseLabel)</PreReleaseInformationVersion>
</PropertyGroup>
</When>
</Choose>
<PropertyGroup Condition=" '$(Version)' == '' ">
<Version>$(SemanticVersion)$(PreReleaseInformationVersion)</Version>
</PropertyGroup>
<PropertyGroup Condition=" '$(NuGetVsVersion)' == '' ">
<NuGetVsVersion>$(NuGetSdkVsSemanticVersion)$(PreReleaseInformationVersion)</NuGetVsVersion>
</PropertyGroup>
<!-- Config -->
<PropertyGroup>
<RepositoryName>NuGet</RepositoryName>
</PropertyGroup>
<!-- Nuspec defaults -->
<PropertyGroup>
<Authors>Microsoft</Authors>
<PackageProjectUrl>https://aka.ms/nugetprj</PackageProjectUrl>
<PackageLicenseExpression>Apache-2.0</PackageLicenseExpression>
<PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance>
<RepositoryType>git</RepositoryType>
<RepositoryUrl>https://github.com/NuGet/NuGet.Client</RepositoryUrl>
<PackageTags>nuget</PackageTags>
<Description>NuGet client library.</Description>
<Copyright>© Microsoft Corporation. All rights reserved.</Copyright>
<Serviceable>true</Serviceable>
<PackageIcon>icon.png</PackageIcon>
</PropertyGroup>
<Target Name="GetSemanticVersion">
<Message Text="$(SemanticVersion)" Importance="High"/>
</Target>
<Target Name="GetNuGetSdkVsSemanticVersion">
<Message Text="$(NuGetSdkVsSemanticVersion)" Importance="High"/>
</Target>
<Target Name="GetVsTargetMajorVersion">
<Message Text="$(VsTargetMajorVersion)" Importance="High"/>
</Target>
<Target Name="GetNuGetVsVersion">
<Message Text="$(NuGetVsVersion)" Importance="High"/>
</Target>
<Target Name="GetVsTargetBranch">
<Message Text="$(VsTargetBranch)" Importance="High"/>
</Target>
<Target Name="GetVsTargetChannel">
<Message Text="$(VsTargetChannel)" Importance="High"/>
</Target>
<Target Name="GetVsTargetChannelForTests">
<Message Text="$(VsTargetChannelForTests)" Importance="High"/>
</Target>
</Project>