-
Notifications
You must be signed in to change notification settings - Fork 738
Expand file tree
/
Copy pathconfig.props
More file actions
94 lines (83 loc) · 4.89 KB
/
config.props
File metadata and controls
94 lines (83 loc) · 4.89 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
<?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 paackages 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, update ProductVersion in src\NuGet.Clients\NuGet.Tools\NuGetPackage.cs and run tools-local\ship-public-apis -->
<MajorNuGetVersion Condition="'$(MajorNuGetVersion)' == ''">5</MajorNuGetVersion>
<MinorNuGetVersion Condition="'$(MinorNuGetVersion)' == ''">8</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. -->
<ReleaseLabel Condition=" '$(ReleaseLabel)' == '' ">rc</ReleaseLabel>
<IsEscrowMode>false</IsEscrowMode>
<!-- Visual Studio Insertion Logic -->
<VsTargetMajorVersion>$([MSBuild]::Add(11, $(MajorNuGetVersion)))</VsTargetMajorVersion>
<VsTargetBranch>main</VsTargetBranch>
<VsTargetChannel>int.$(VsTargetBranch)</VsTargetChannel>
<!-- This branches are used for creating insertion PRs -->
<VsTargetBranch Condition="'$(IsEscrowMode)' == 'true'">rel/d$(VsTargetMajorVersion).$(MinorNuGetVersion)</VsTargetBranch>
<VsTargetChannel Condition="'$(IsEscrowMode)' == 'true'">int.d$(VsTargetMajorVersion).$(MinorNuGetVersion)</VsTargetChannel>
<!-- .NET Core SDK Insertion Logic -->
<!--We don't have .NET5 installed on CI, so we need to get version from CliVersionForBuilding and install it-->
<!--TODO: remove temporary workaround of using LockSDKVersion. Tracking issue: https://github.com/NuGet/Home/issues/9712 -->
<LockSDKVersion>true</LockSDKVersion>
<OverrideCliBranchForTesting Condition="'$(LockSDKVersion)' == 'false'"></OverrideCliBranchForTesting>
<OverrideCliBranchForTesting Condition="'$(LockSDKVersion)' == 'true'">master 5.0.100-preview.7.20366.6</OverrideCliBranchForTesting>
<CliVersionForBuilding>"master 5.0.100-preview.7.20366.6"</CliVersionForBuilding>
<CliBranchForTesting Condition="'$(OverrideCliBranchForTesting)' != ''">$(OverrideCliBranchForTesting)</CliBranchForTesting>
<CliBranchForTesting Condition="'$(OverrideCliBranchForTesting)' == ''">master</CliBranchForTesting>
<CliTargetBranches Condition="'$(OverrideCliTargetBranches)' != ''">$(OverrideCliTargetBranches)</CliTargetBranches>
<CliTargetBranches Condition="'$(OverrideCliTargetBranches)' == ''">master</CliTargetBranches>
</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>
<PackageIconUrl>https://raw.githubusercontent.com/NuGet/Media/master/Images/MainLogo/256x256/nuget_256.png</PackageIconUrl>
</PropertyGroup>
<PropertyGroup>
<NUGET_PFX_PATH>$(MSBuildThisFileDirectory)..\keys\NuGetKey.snk</NUGET_PFX_PATH>
<MS_PFX_PATH>$(MSBuildThisFileDirectory)..\keys\35MSSharedLib1024.snk</MS_PFX_PATH>
</PropertyGroup>
<Target Name="GetSemanticVersion">
<Message Text="$(SemanticVersion)" Importance="High"/>
</Target>
<Target Name="GetVsTargetMajorVersion">
<Message Text="$(VsTargetMajorVersion)" Importance="High"/>
</Target>
<Target Name="GetVsTargetBranch">
<Message Text="$(VsTargetBranch)" Importance="High"/>
</Target>
<Target Name="GetVsTargetChannel">
<Message Text="$(VsTargetChannel)" Importance="High"/>
</Target>
<Target Name="GetCliTargetBranches">
<Message Text="$(CliTargetBranches)" Importance="High"/>
</Target>
<Target Name="GetCliBranchForTesting">
<Message Text="$(CliBranchForTesting)" Importance="High"/>
</Target>
<Target Name="GetCliVersionForBuilding">
<Message Text="$(CliVersionForBuilding)" Importance="High"/>
</Target>
</Project>