-
Notifications
You must be signed in to change notification settings - Fork 2.6k
/
Copy pathtask.json
174 lines (174 loc) · 8.81 KB
/
task.json
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
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
{
"id": "333b11bd-d341-40d9-afcf-b32d5ce6f23b",
"name": "NuGetRestore",
"friendlyName": "NuGet Restore",
"description": "Restores NuGet packages in preparation for a Visual Studio Build step.",
"helpUrl": "https://docs.microsoft.com/azure/devops/pipelines/tasks/package/nuget",
"helpMarkDown": "[Learn more about this task](https://docs.microsoft.com/azure/devops/pipelines/tasks/package/nuget) or [see the NuGet documentation](https://docs.microsoft.com/nuget/)",
"category": "Package",
"author": "Microsoft Corporation",
"version": {
"Major": 1,
"Minor": 236,
"Patch": 2
},
"runsOn": [
"Agent",
"DeploymentGroup"
],
"minimumAgentVersion": "2.144.0",
"deprecated": true,
"removalDate": "2023-12-11",
"deprecationMessage": "The NuGetRestore@1 (NuGet Restore) task has been deprecated and will soon be retired. Use the NuGetCommand@2 (with the restore option) task instead.",
"groups": [
{
"name": "advanced",
"displayName": "Advanced",
"isExpanded": false
}
],
"instanceNameFormat": "NuGet restore $(solution)",
"inputs": [
{
"name": "solution",
"type": "filePath",
"label": "Path to solution, packages.config, or project.json",
"defaultValue": "**/*.sln",
"helpMarkDown": "The path to solution, packages.config, or project.json file that references the packages to be restored.",
"required": "true"
},
{
"name": "selectOrConfig",
"type": "radio",
"label": "Feeds to use",
"defaultValue": "select",
"helpMarkDown": "To select one feed from Azure Artifacts and/or NuGet.org select them here. For multiple feeds, commit a nuget.config file to your source code repository and set its path here.",
"required": "true",
"options": {
"select": "Feed(s) I select here",
"config": "Feeds in my NuGet.config"
}
},
{
"name": "feed",
"type": "pickList",
"label": "Use packages from this Azure Artifacts feed",
"defaultValue": "",
"helpMarkDown": "Include the selected feed in the generated NuGet.config.",
"required": "false",
"visibleRule": "selectOrConfig = select",
"properties": {
"EditableOptions": "True"
}
},
{
"name": "includeNuGetOrg",
"type": "boolean",
"label": "Use packages from NuGet.org",
"defaultValue": "true",
"helpMarkDown": "Include NuGet.org in the generated NuGet.config.",
"required": "false",
"visibleRule": "selectOrConfig = select"
},
{
"name": "nugetConfigPath",
"type": "filePath",
"label": "Path to NuGet.config",
"defaultValue": "",
"helpMarkDown": "The NuGet.config in your repository that specifies the feeds from which to restore packages.",
"required": "false",
"visibleRule": "selectOrConfig = config"
},
{
"name": "noCache",
"type": "boolean",
"label": "Disable local cache",
"defaultValue": "false",
"helpMarkDown": "Equivalent to the -NoCache NuGet.exe command line argument",
"required": "false",
"groupName": "advanced"
},
{
"name": "packagesDirectory",
"type": "string",
"label": "Destination directory",
"defaultValue": "",
"helpMarkDown": "Equivalent to the -PackagesDirectory NuGet.exe command line argument",
"required": "false",
"groupName": "advanced"
},
{
"name": "verbosity",
"type": "pickList",
"label": "Verbosity",
"defaultValue": "Detailed",
"helpMarkDown": "NuGet's verbosity level",
"required": "false",
"groupName": "advanced",
"options": {
"-": "-",
"Quiet": "Quiet",
"Normal": "Normal",
"Detailed": "Detailed"
}
}
],
"dataSourceBindings": [
{
"target": "feed",
"endpointId": "tfs:feed",
"endpointUrl": "{{endpoint.url}}/_apis/packaging/feeds?includeUrls=False",
"resultSelector": "jsonpath:$.value[*]",
"resultTemplate": "{ \"Value\" : \"{{#if project}}{{{project.id}}}\\/{{/if}}{{{id}}}\", \"DisplayValue\" : \"{{{name}}}\" }"
}
],
"execution": {
"Node10": {
"target": "nugetinstaller.js",
"argumentFormat": ""
},
"Node16": {
"target": "nugetinstaller.js",
"argumentFormat": ""
}
},
"messages": {
"Warning_NoConfigForNoCredentialProvider": "To connect to NuGet feeds hosted in your Azure Pipelines/TFS project collection on this build agent, edit your build definition to choose a higher version of nuget or specify a path to a NuGet.config containing the package sources you wish to use.",
"Warning_ConflictingNuGetPreference": "NuGet 3.3 was selected, but a custom NuGet path was provided. The custom path will be preferred. To resolve this warning, edit your build task and select 'custom' for NuGet version under Advanced.",
"PackagesInstalledSuccessfully": "Packages were restored successfully",
"PackagesFailedToInstall": "Packages failed to restore",
"ConnectingAs": "Connecting to feeds in your Azure Pipelines/TFS project collection as '%s' [%s]",
"BuildIdentityPermissionsHint": "For internal feeds, make sure the build service identity '%s' [%s] has access to the feed.",
"NoCredProviderOnAgent": "CredentialProvider.TeamBuild.exe not found on the agent. Falling back to config-based credential flow.",
"NotARegularFile": "%s i not a solution file. Check the 'path to solution or packages.config' property of the NuGet Restore task.",
"UnknownRestoreMode": "Unknown restore mode '%s'",
"CouldNotFindNuGetService": "Could not find the NuGet service. This task will be unable to authenticate to feeds hosted in your Azure Pipelines/TFS project collection.",
"NoNuGetSpecified": "If 'custom' is selected, you must provide a path to NuGet.exe",
"NGCommon_DetectedNuGetVersion": "Detected NuGet version %s / %s",
"NGCommon_IgnoringNuGetExtensionsPath": "Detected NuGet extensions loader path (NUGET_EXTENSIONS_PATH environment variable). Extensions are ignored when using the built-in NuGet client",
"NGCommon_DetectedNuGetExtensionsPath": "Detected NuGet extensions loader path (NUGET_EXTENSIONS_PATH environment variable): %s",
"NGCommon_UnableToFindTool": "Unable to find tool %s",
"NGCommon_SpsNotFound": "Unable to find the '%s' [%s] area. There may be a problem with your Team Foundation Server installation.",
"NGCommon_AreaNotFoundInSps": "Unable to locate the '%s' [%s] area. The service containing that area may not be available in your region.",
"NGCommon_NuGetConfigIsPackagesConfig": "Expected a NuGet.config file at %s, but its contents appear to be a packages.config. Check the settings for the %s task and confirm you selected NuGet.config rather than packages.config.",
"NGCommon_NuGetConfigIsInvalid": "The NuGet.config at %s is invalid.",
"NGCommon_RemovingSources": "Preparing to set credentials in NuGet.config",
"NGCommon_AddingSources": "Setting credentials in NuGet.config",
"NGCommon_NoSourcesFoundInConfig": "No package sources were found in the NuGet.config file at %s",
"NGCommon_UnabletoDetectNuGetVersion": "Unknown NuGet version selected.",
"Info_AvailableVersions": "The available versions are: %s",
"Info_ResolvedToolFromCache": "Resolved from tool cache: %s",
"Info_UsingVersion": "Using version: %s",
"Info_UsingToolPath": "Using tool path: %s",
"Info_ExpectBehaviorChangeWhenUsingVersionQuery": "You are using a query match on the version string. Behavior changes or breaking changes might occur as NuGet updates to a new version.",
"Error_NoVersionWasFoundWhichMatches": "No version was found which matches the input %s",
"Error_NoUrlWasFoundWhichMatches": "No download URL was found for %s",
"Error_NuGetToolInstallerFailer": "Tool install failed: %s",
"Warning_SessionCreationFailed": "Could not create provenance session: %s",
"Warning_UpdatingNuGetVersion": "Updating version of NuGet.exe to %s from %s. Behavior changes or breaking changes might occur as NuGet updates to a new version. If this is not desired, uncheck the 'Check for Latest Version' option in the task.",
"UnsupportedProjectScopedFeeds": "Project-scoped feeds are not supported by this version of the \"NuGet Restore\" task. Please use the \"NuGet\" task version 2 or higher.",
"Warning_IncludeNuGetOrgEnabled": "IncludeNugetOrg is currently enabled for this task. To resolve this warning, edit your build task and set 'includeNuGetOrg' to 'false' or deselect 'Use packages from NuGet.org'.",
"Error_IncludeNuGetOrgEnabled": "Packages failed to restore. Edit your build task and set 'includeNuGetOrg' to 'false' or deselect 'Use packages from NuGet.org'.",
"DeprecatedTask": "This task is deprecated. Please switch to using NuGetCommand@2's 'restore' option https://learn.microsoft.com/en-us/azure/devops/pipelines/tasks/reference/nuget-command-v2"
}
}