forked from NuGet/NuGet.Client
-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathconfig.props
116 lines (105 loc) · 6.24 KB
/
config.props
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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
<?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)' == ''">3</MajorNuGetVersion>
<MinorNuGetVersion Condition="'$(MinorNuGetVersion)' == ''">4</MinorNuGetVersion>
<PatchNuGetVersion Condition="'$(PatchNuGetVersion)' == ''">3</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>true</IsEscrowMode>
<!-- Visual Studio Insertion Logic -->
<VsTargetMajorVersion>$([MSBuild]::Add(11, $(MajorNuGetVersion)))</VsTargetMajorVersion>
<VsTargetBranch>main</VsTargetBranch>
<VsTargetChannel>int.$(VsTargetBranch)</VsTargetChannel>
<!-- NuGet SDK VS package Semantic Version -->
<NuGetSdkVsSemanticVersion>$(VsTargetMajorVersion).$(MinorNuGetVersion).$(PatchNuGetVersion)</NuGetSdkVsSemanticVersion>
<!-- 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>
<!-- Specifies the SDK version to download to use for testing. Ideally, this is the same .NET SDK version NuGet inserts into.
The first value represents the channel, the second value represents the exact SDK version to be download. If a version is not specified, the latest version from the channel will be downloaded.
Note that multiple SDKs can be downloaded by using `;` as a separator.
The channel needs to be two-part version in A.B format, or three-part version in A.B.Cxx format.
The version needs to be the exact version number if specified.
e.g. 5.0;6.0 means install the latest versions from both channel 5.0 and channel 6.0.
6.0:6.0.100-preview.7.21379.14 means install the preview version 6.0.100-preview.7.21379.14.
Refer to https://docs.microsoft.com/en-us/dotnet/core/tools/dotnet-install-script#options for more details.
-->
<CliBranchForTesting Condition="'$(CliBranchForTesting)' == ''">7.0:7.0.100-rtm.22510.17</CliBranchForTesting>
</PropertyGroup>
<!-- Config -->
<PropertyGroup>
<RepositoryName>NuGet</RepositoryName>
</PropertyGroup>
<!-- Nuspec defaults -->
<PropertyGroup>
<Authors>Microsoft</Authors>
<!-- //////////////////////////////////////////////////////////
// Start - Chocolatey Specific Modification
////////////////////////////////////////////////////////// -->
<PackageProjectUrl>https://github.com/chocolatey/nuget.client</PackageProjectUrl>
<!-- //////////////////////////////////////////////////////////
// End - Chocolatey Specific Modification
////////////////////////////////////////////////////////// -->
<PackageLicenseExpression>Apache-2.0</PackageLicenseExpression>
<PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance>
<RepositoryType>git</RepositoryType>
<!-- //////////////////////////////////////////////////////////
// Start - Chocolatey Specific Modification
////////////////////////////////////////////////////////// -->
<RepositoryUrl>https://github.com/chocolatey/nuget.client</RepositoryUrl>
<PackageTags>nuget;chocolatey</PackageTags>
<Description>Chocolatey NuGet client library.</Description>
<!-- //////////////////////////////////////////////////////////
// End - Chocolatey Specific Modification
////////////////////////////////////////////////////////// -->
<Copyright>© Microsoft Corporation. All rights reserved.</Copyright>
<Serviceable>true</Serviceable>
<!-- //////////////////////////////////////////////////////////
// Start - Chocolatey Specific Modification
////////////////////////////////////////////////////////// -->
<PackageIcon>chocolateyicon.png</PackageIcon>
<!-- //////////////////////////////////////////////////////////
// End - Chocolatey Specific Modification
////////////////////////////////////////////////////////// -->
</PropertyGroup>
<PropertyGroup>
<!-- //////////////////////////////////////////////////////////
// Start - Chocolatey Specific Modification
////////////////////////////////////////////////////////// -->
<NUGET_PFX_PATH>$(MSBuildThisFileDirectory)..\keys\chocolatey.snk</NUGET_PFX_PATH>
<MS_PFX_PATH>$(MSBuildThisFileDirectory)..\keys\chocolatey.snk</MS_PFX_PATH>
<!-- //////////////////////////////////////////////////////////
// End - Chocolatey Specific Modification
////////////////////////////////////////////////////////// -->
</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="GetVsTargetBranch">
<Message Text="$(VsTargetBranch)" Importance="High"/>
</Target>
<Target Name="GetVsTargetChannel">
<Message Text="$(VsTargetChannel)" Importance="High"/>
</Target>
<Target Name="GetCliBranchForTesting">
<Message Text="$(CliBranchForTesting)" Importance="High"/>
</Target>
</Project>