Skip to content

Commit afd241c

Browse files
amp-powellAbby Powell (from Dev Box)
and
Abby Powell (from Dev Box)
authored
Break deprecated tasks DownloadPackageV0, NuGetInstallerV0, NuGetRestoreV1 (#19325)
* Breaking deprecated tasks after they complete * Bumped versions * Added str to DownloadPackageV0's english reources.resjson * Added str to english reources.resjson * Removed non pre-existing DownloadPackageV0 L0 tests * Checking 2nd error NuGetInstallerV0 throws * L0 tests check for 2 errors: 1 for deprecation + 1 for failure * Updated expected error message * Made error messages clearer * Updated removal date * Make strings match * Added feature flag to breaking tasks * Changed logic to fail when ff is on * Added env var to tests * Made sure FF check only passes when true * Updated generated files --------- Co-authored-by: Abby Powell (from Dev Box) <[email protected]>
1 parent 1f73472 commit afd241c

File tree

114 files changed

+513
-228
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

114 files changed

+513
-228
lines changed

Tasks/DownloadPackageV0/Strings/resources.resjson/en-US/resources.resjson

+2-1
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,6 @@
2222
"loc.messages.RetryingOperation": "Error: in %s, so retrying => retries pending: %s",
2323
"loc.messages.OperationFailed": "Failed in %s with error: %s",
2424
"loc.messages.Info_ResolvedToolFromCache": "Resolved from tool cache: %s",
25-
"loc.messages.UnsupportedProjectScopedFeeds": "Project-scoped feeds are not supported by this version of the \"Download Package\" task. Please use version 1 or higher."
25+
"loc.messages.UnsupportedProjectScopedFeeds": "Project-scoped feeds are not supported by this version of the \"Download Package\" task. Please use version 1 or higher.",
26+
"loc.messages.DeprecatedTask": "This task is deprecated. Please switch to using DownloadPackage@1 https://learn.microsoft.com/en-us/azure/devops/pipelines/tasks/reference/download-package-v1"
2627
}

Tasks/DownloadPackageV0/Tests/L0.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
import fs = require('fs');
22
import assert = require('assert');
33
import path = require('path');
4+
import * as ttm from 'azure-pipelines-task-lib/mock-test';
5+
import * as tl from "azure-pipelines-task-lib/task";
46

57
describe('DownloadPackageV0 Suite', function () {
68
before(() => {
@@ -9,7 +11,7 @@ describe('DownloadPackageV0 Suite', function () {
911
after(() => {
1012
});
1113

12-
it('Does a basic hello world test', function(done: MochaDone) {
14+
it('Does a basic hello world test', function(done: Mocha.Done) {
1315
// TODO - add real tests
1416
done();
1517
});

Tasks/DownloadPackageV0/download.ts

+7-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import { WebApi } from 'azure-devops-node-api';
1313
tl.setResourcePath(path.join(__dirname, 'task.json'));
1414

1515
async function main(): Promise<void> {
16-
tl.warning("This task is deprecated. Builds that use it will break on 11-27-2023. Please switch to using DownloadPackage@1 as soon as possible.");
16+
tl.warning(tl.loc("DeprecatedTask"));
1717
var feed = getProjectAndFeedIdFromInputParam("feed");
1818
if(feed.projectId) {
1919
throw new Error(tl.loc("UnsupportedProjectScopedFeeds"));
@@ -42,6 +42,12 @@ async function main(): Promise<void> {
4242
await executeWithRetries("downloadPackage", () => downloadPackage(feedConnection, pkgsConnection, feedId, packageId, version, downloadPath).catch((reason) => {
4343
throw reason;
4444
}), retryLimit);
45+
46+
let shouldFail = tl.getVariable('FAIL_DEPRECATED_TASK');
47+
48+
if (shouldFail != null && shouldFail.toLowerCase() === 'true') {
49+
throw new Error(tl.loc("DeprecatedTask"));
50+
}
4551
}
4652

4753
function getAuthToken() {

Tasks/DownloadPackageV0/task.json

+4-3
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,13 @@
99
"author": "ms-vscs-rm",
1010
"version": {
1111
"Major": 0,
12-
"Minor": 231,
12+
"Minor": 232,
1313
"Patch": 0
1414
},
1515
"demands": [],
1616
"minimumAgentVersion": "2.144.0",
1717
"deprecated": true,
18-
"removalDate": "2023-11-27",
18+
"removalDate": "2023-12-11",
1919
"inputs": [
2020
{
2121
"name": "feed",
@@ -112,6 +112,7 @@
112112
"RetryingOperation": "Error: in %s, so retrying => retries pending: %s",
113113
"OperationFailed": "Failed in %s with error: %s",
114114
"Info_ResolvedToolFromCache": "Resolved from tool cache: %s",
115-
"UnsupportedProjectScopedFeeds": "Project-scoped feeds are not supported by this version of the \"Download Package\" task. Please use version 1 or higher."
115+
"UnsupportedProjectScopedFeeds": "Project-scoped feeds are not supported by this version of the \"Download Package\" task. Please use version 1 or higher.",
116+
"DeprecatedTask": "This task is deprecated. Please switch to using DownloadPackage@1 https://learn.microsoft.com/en-us/azure/devops/pipelines/tasks/reference/download-package-v1"
116117
}
117118
}

Tasks/DownloadPackageV0/task.loc.json

+4-3
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,13 @@
99
"author": "ms-vscs-rm",
1010
"version": {
1111
"Major": 0,
12-
"Minor": 231,
12+
"Minor": 232,
1313
"Patch": 0
1414
},
1515
"demands": [],
1616
"minimumAgentVersion": "2.144.0",
1717
"deprecated": true,
18-
"removalDate": "2023-11-27",
18+
"removalDate": "2023-12-11",
1919
"inputs": [
2020
{
2121
"name": "feed",
@@ -112,6 +112,7 @@
112112
"RetryingOperation": "ms-resource:loc.messages.RetryingOperation",
113113
"OperationFailed": "ms-resource:loc.messages.OperationFailed",
114114
"Info_ResolvedToolFromCache": "ms-resource:loc.messages.Info_ResolvedToolFromCache",
115-
"UnsupportedProjectScopedFeeds": "ms-resource:loc.messages.UnsupportedProjectScopedFeeds"
115+
"UnsupportedProjectScopedFeeds": "ms-resource:loc.messages.UnsupportedProjectScopedFeeds",
116+
"DeprecatedTask": "ms-resource:loc.messages.DeprecatedTask"
116117
}
117118
}

Tasks/NuGetInstallerV0/Strings/resources.resjson/en-US/resources.resjson

+2-1
Original file line numberDiff line numberDiff line change
@@ -42,5 +42,6 @@
4242
"loc.messages.NGCommon_RemovingSources": "Preparing to set credentials in NuGet.config",
4343
"loc.messages.NGCommon_AddingSources": "Setting credentials in NuGet.config",
4444
"loc.messages.NGCommon_NoSourcesFoundInConfig": "No package sources were found in the NuGet.config file at %s",
45-
"loc.messages.NGCommon_UnabletoDetectNuGetVersion": "Unknown NuGet version selected."
45+
"loc.messages.NGCommon_UnabletoDetectNuGetVersion": "Unknown NuGet version selected.",
46+
"loc.messages.DeprecatedTask": "This task is deprecated. Please switch to using NuGetCommand@2's 'restore' or 'custom' option https://learn.microsoft.com/en-us/azure/devops/pipelines/tasks/reference/nuget-command-v2"
4647
}

Tasks/NuGetInstallerV0/Tests/L0.ts

+27-19
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,10 @@ describe('NuGetInstaller Suite', function () {
1616
assert(tr.ran('c:\\from\\tool\\installer\\nuget.exe restore -NonInteractive c:\\agent\\home\\directory\\single.sln'), 'it should have run NuGet');
1717
assert(tr.stdOutContained('setting console code page'), 'it should have run chcp');
1818
assert(tr.stdOutContained('NuGet output here'), "should have nuget output");
19-
assert(tr.succeeded, 'should have succeeded');
2019
assert(tr.invokedToolCount == 1, 'should have run NuGet');
21-
assert.equal(tr.errorIssues.length, 0, "should have no errors");
20+
assert(tr.failed, 'should have failed');
21+
assert.equal(tr.errorIssues.length, 2, "should have 2 errors");
22+
assert.equal(tr.errorIssues[0], "Error: loc_mock_DeprecatedTask", "Error should be about deprecation");
2223
done();
2324
}).timeout(20000);
2425

@@ -31,10 +32,10 @@ describe('NuGetInstaller Suite', function () {
3132
assert(tr.stdOutContained('setting console code page'), 'it should have run chcp');
3233
assert(tr.stdOutContained('NuGet output here'), "should have nuget output");
3334
assert(tr.stdout.indexOf('credProviderPath = ') >= 0, "should have found credential provider path");
34-
assert(tr.succeeded, 'should have succeeded');
3535
assert(tr.invokedToolCount == 1, 'should have run NuGet');
36-
assert.equal(tr.warningIssues[0], "This task is deprecated. Builds that use it will break on 11-27-2023. Please switch to using NuGetCommand@2's 'restore' option as soon as possible.", "should have deprecation warning");
37-
assert.equal(tr.errorIssues.length, 0, "should have no errors");
36+
assert(tr.failed, 'should have failed');
37+
assert.equal(tr.errorIssues.length, 2, "should have 2 errors");
38+
assert.equal(tr.errorIssues[0], "Error: loc_mock_DeprecatedTask", "Error should be about deprecation");
3839
done();
3940
}).timeout(20000);
4041

@@ -46,9 +47,10 @@ describe('NuGetInstaller Suite', function () {
4647
assert(tr.ran('c:\\from\\tool\\installer\\nuget.exe restore -NonInteractive c:\\agent\\home\\directory\\packages.config'), 'it should have run NuGet');
4748
assert(tr.stdOutContained('setting console code page'), 'it should have run chcp');
4849
assert(tr.stdOutContained('NuGet output here'), "should have nuget output");
49-
assert(tr.succeeded, 'should have succeeded');
5050
assert(tr.invokedToolCount == 1, 'should have run NuGet');
51-
assert.equal(tr.errorIssues.length, 0, "should have no errors");
51+
assert(tr.failed, 'should have failed');
52+
assert.equal(tr.errorIssues.length, 2, "should have 2 errors");
53+
assert.equal(tr.errorIssues[0], "Error: loc_mock_DeprecatedTask", "Error should be about deprecation");
5254
done();
5355
}).timeout(20000);
5456

@@ -60,9 +62,10 @@ describe('NuGetInstaller Suite', function () {
6062
assert(tr.ran('c:\\from\\tool\\installer\\nuget.exe restore -NonInteractive c:\\agent\\home\\directory\\single.sln -NoCache'), 'it should have run NuGet');
6163
assert(tr.stdOutContained('setting console code page'), 'it should have run chcp');
6264
assert(tr.stdOutContained('NuGet output here'), "should have nuget output");
63-
assert(tr.succeeded, 'should have succeeded');
6465
assert(tr.invokedToolCount == 1, 'should have run NuGet');
65-
assert.equal(tr.errorIssues.length, 0, "should have no errors");
66+
assert(tr.failed, 'should have failed');
67+
assert.equal(tr.errorIssues.length, 2, "should have 2 errors");
68+
assert.equal(tr.errorIssues[0], "Error: loc_mock_DeprecatedTask", "Error should be about deprecation");
6669
done();
6770
}).timeout(20000);
6871

@@ -74,9 +77,10 @@ describe('NuGetInstaller Suite', function () {
7477
assert(tr.ran('c:\\from\\tool\\installer\\nuget.exe restore -NonInteractive c:\\agent\\home\\directory\\single.sln -Foo'), 'it should have run NuGet');
7578
assert(tr.stdOutContained('setting console code page'), 'it should have run chcp');
7679
assert(tr.stdOutContained('NuGet output here'), "should have nuget output");
77-
assert(tr.succeeded, 'should have succeeded');
7880
assert(tr.invokedToolCount == 1, 'should have run NuGet');
79-
assert.equal(tr.errorIssues.length, 0, "should have no errors");
81+
assert(tr.failed, 'should have failed');
82+
assert.equal(tr.errorIssues.length, 2, "should have 2 errors");
83+
assert.equal(tr.errorIssues[0], "Error: loc_mock_DeprecatedTask", "Error should be about deprecation");
8084
done();
8185
}).timeout(20000);
8286

@@ -91,9 +95,10 @@ describe('NuGetInstaller Suite', function () {
9195
assert(tr.stdOutContained('setting console code page'), 'it should have run chcp');
9296
assert(tr.stdOutContained("adding package source uri: mockFeedUri"), "should have added content to temp config");
9397
assert(tr.stdOutContained('NuGet output here'), "should have nuget output");
94-
assert(tr.succeeded, 'should have succeeded');
9598
assert(tr.invokedToolCount == 1, 'should have run NuGet');
96-
assert.equal(tr.errorIssues.length, 0, "should have no errors");
99+
assert(tr.failed, 'should have failed');
100+
assert.equal(tr.errorIssues.length, 2, "should have 2 errors");
101+
assert.equal(tr.errorIssues[0], "Error: loc_mock_DeprecatedTask", "Error should be about deprecation");
97102
done();
98103
}).timeout(20000);
99104

@@ -105,9 +110,10 @@ describe('NuGetInstaller Suite', function () {
105110
assert(tr.ran('c:\\custompath\\nuget.exe restore -NonInteractive c:\\agent\\home\\directory\\single.sln'), 'it should have run NuGet');
106111
assert(tr.stdOutContained('setting console code page'), 'it should have run chcp');
107112
assert(tr.stdOutContained('NuGet output here'), "should have nuget output");
108-
assert(tr.succeeded, 'should have succeeded');
109113
assert(tr.invokedToolCount == 1, 'should have run NuGet');
110-
assert.equal(tr.errorIssues.length, 0, "should have no errors");
114+
assert(tr.failed, 'should have failed');
115+
assert.equal(tr.errorIssues.length, 2, "should have 2 errors");
116+
assert.equal(tr.errorIssues[0], "Error: loc_mock_DeprecatedTask", "Error should be about deprecation");
111117
done();
112118
}).timeout(20000);
113119

@@ -120,9 +126,10 @@ describe('NuGetInstaller Suite', function () {
120126
assert(tr.ran('c:\\from\\tool\\installer\\nuget.exe restore -NonInteractive c:\\agent\\home\\directory\\double\\double.sln'), 'it should have run NuGet on double.sln');
121127
assert(tr.stdOutContained('setting console code page'), 'it should have run chcp');
122128
assert(tr.stdOutContained('NuGet output here'), "should have nuget output");
123-
assert(tr.succeeded, 'should have succeeded');
124129
assert(tr.invokedToolCount == 2, 'should have run NuGet twice');
125-
assert.equal(tr.errorIssues.length, 0, "should have no errors");
130+
assert(tr.failed, 'should have failed');
131+
assert.equal(tr.errorIssues.length, 2, "should have 2 errors");
132+
assert.equal(tr.errorIssues[0], "Error: loc_mock_DeprecatedTask", "Error should be about deprecation");
126133
done();
127134
}).timeout(20000);
128135

@@ -133,9 +140,10 @@ describe('NuGetInstaller Suite', function () {
133140
tr.run()
134141
assert(tr.ran('/usr/bin/mono ~/myagent/_work/_tasks/NuGet/nuget.exe restore -NonInteractive ~/myagent/_work/1/s/single.sln'), 'it should have run NuGet with mono');
135142
assert(tr.stdOutContained('NuGet output here'), "should have nuget output");
136-
assert(tr.succeeded, 'should have succeeded');
137143
assert(tr.invokedToolCount == 1, 'should have run NuGet');
138-
assert.equal(tr.errorIssues.length, 0, "should have no errors");
144+
assert(tr.failed, 'should have failed');
145+
assert.equal(tr.errorIssues.length, 2, "should have 2 errors");
146+
assert.equal(tr.errorIssues[0], "Error: loc_mock_DeprecatedTask", "Error should be about deprecation");
139147
done();
140148
}).timeout(20000);
141149
});

Tasks/NuGetInstallerV0/Tests/multiplesln.ts

+2
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ let nmh: util.NugetMockHelper = new util.NugetMockHelper(tmr);
1111
nmh.setNugetVersionInputDefault();
1212
tmr.setInput('solution', '**//*.sln');
1313

14+
process.env['FAIL_DEPRECATED_TASK'] = "true";
15+
1416
let a: ma.TaskLibAnswers = <ma.TaskLibAnswers>{
1517
"osType": {},
1618
"checkPath": {

Tasks/NuGetInstallerV0/Tests/pkgconfig.ts

+2
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ let nmh: util.NugetMockHelper = new util.NugetMockHelper(tmr);
1212
nmh.setNugetVersionInputDefault();
1313
tmr.setInput('solution', 'packages.config');
1414

15+
process.env['FAIL_DEPRECATED_TASK'] = "true";
16+
1517
let a: ma.TaskLibAnswers = <ma.TaskLibAnswers>{
1618
"osType": {},
1719
"checkPath": {

Tasks/NuGetInstallerV0/Tests/singlesln.ts

+2
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ let nmh: util.NugetMockHelper = new util.NugetMockHelper(tmr);
1212
nmh.setNugetVersionInputDefault();
1313
tmr.setInput('solution', 'single.sln');
1414

15+
process.env['FAIL_DEPRECATED_TASK'] = "true";
16+
1517
let a: ma.TaskLibAnswers = <ma.TaskLibAnswers>{
1618
"osType": {},
1719
"checkPath": {

Tasks/NuGetInstallerV0/Tests/singleslnConfigFile.ts

+2
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ nmh.setNugetVersionInputDefault();
1313
tmr.setInput('solution', 'single.sln');
1414
tmr.setInput('nugetConfigPath', 'c:\\agent\\home\\directory\\nuget.config');
1515

16+
process.env['FAIL_DEPRECATED_TASK'] = "true";
17+
1618
let a: ma.TaskLibAnswers = <ma.TaskLibAnswers>{
1719
"osType": {},
1820
"checkPath": {

Tasks/NuGetInstallerV0/Tests/singleslnCredentialProvider.ts

+2
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ let nmh: util.NugetMockHelper = new util.NugetMockHelper(tmr);
1212
nmh.setNugetVersionInputDefault();
1313
tmr.setInput('solution', 'single.sln');
1414

15+
process.env['FAIL_DEPRECATED_TASK'] = "true";
16+
1517
let a: ma.TaskLibAnswers = <ma.TaskLibAnswers>{
1618
"osType": {},
1719
"checkPath": {

Tasks/NuGetInstallerV0/Tests/singleslnCustomPath.ts

+2
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ nmh.setNugetVersionInputDefault();
1313
tmr.setInput('solution', 'single.sln');
1414
tmr.setInput('nuGetPath', 'c:\\custompath\\nuget.exe');
1515

16+
process.env['FAIL_DEPRECATED_TASK'] = "true";
17+
1618
let a: ma.TaskLibAnswers = <ma.TaskLibAnswers>{
1719
"osType": {},
1820
"checkPath": {

Tasks/NuGetInstallerV0/Tests/singleslnExtraArgs.ts

+2
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ nmh.setNugetVersionInputDefault();
1313
tmr.setInput('solution', 'single.sln');
1414
tmr.setInput('nuGetRestoreArgs', '-Foo');
1515

16+
process.env['FAIL_DEPRECATED_TASK'] = "true";
17+
1618
let a: ma.TaskLibAnswers = <ma.TaskLibAnswers>{
1719
"osType": {},
1820
"checkPath": {

Tasks/NuGetInstallerV0/Tests/singleslnMono.ts

+2
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ let nmh: util.NugetMockHelper = new util.NugetMockHelper(tmr, true);
1212
nmh.setNugetVersionInputDefault();
1313
tmr.setInput('solution', 'single.sln');
1414

15+
process.env['FAIL_DEPRECATED_TASK'] = "true";
16+
1517
let a: ma.TaskLibAnswers = <ma.TaskLibAnswers>{
1618
"osType": {
1719
"osType" : "Linux"

Tasks/NuGetInstallerV0/Tests/singleslnNoCache.ts

+2
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ nmh.setNugetVersionInputDefault();
1313
tmr.setInput('solution', 'single.sln');
1414
tmr.setInput('noCache', 'True');
1515

16+
process.env['FAIL_DEPRECATED_TASK'] = "true";
17+
1618
let a: ma.TaskLibAnswers = <ma.TaskLibAnswers>{
1719
"osType": {},
1820
"checkPath": {

Tasks/NuGetInstallerV0/nugetinstaller.ts

+8-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class RestoreOptions implements INuGetCommandOptions {
2424
}
2525

2626
async function main(): Promise<void> {
27-
tl.warning("This task is deprecated. Builds that use it will break on 11-27-2023. Please switch to using NuGetCommand@2's 'restore' option as soon as possible.");
27+
tl.warning(tl.loc("DeprecatedTask"));
2828
let packagingLocation: pkgLocationUtils.PackagingLocation;
2929
try {
3030
packagingLocation = await pkgLocationUtils.getPackagingUris(pkgLocationUtils.ProtocolType.NuGet);
@@ -188,7 +188,14 @@ async function main(): Promise<void> {
188188
credCleanup();
189189
}
190190

191+
let shouldFail = tl.getVariable('FAIL_DEPRECATED_TASK');
192+
193+
if (shouldFail != null && shouldFail.toLowerCase() === 'true') {
194+
throw new Error(tl.loc("DeprecatedTask"));
195+
}
196+
191197
tl.setResult(tl.TaskResult.Succeeded, tl.loc("PackagesInstalledSuccessfully"));
198+
192199
} catch (err) {
193200
tl.error(err);
194201

Tasks/NuGetInstallerV0/task.json

+4-3
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"author": "Microsoft Corporation",
1010
"version": {
1111
"Major": 0,
12-
"Minor": 231,
12+
"Minor": 232,
1313
"Patch": 0
1414
},
1515
"runsOn": [
@@ -18,7 +18,7 @@
1818
],
1919
"minimumAgentVersion": "2.115.0",
2020
"deprecated": true,
21-
"removalDate": "2023-11-27",
21+
"removalDate": "2023-12-11",
2222
"groups": [
2323
{
2424
"name": "advanced",
@@ -145,6 +145,7 @@
145145
"NGCommon_RemovingSources": "Preparing to set credentials in NuGet.config",
146146
"NGCommon_AddingSources": "Setting credentials in NuGet.config",
147147
"NGCommon_NoSourcesFoundInConfig": "No package sources were found in the NuGet.config file at %s",
148-
"NGCommon_UnabletoDetectNuGetVersion": "Unknown NuGet version selected."
148+
"NGCommon_UnabletoDetectNuGetVersion": "Unknown NuGet version selected.",
149+
"DeprecatedTask": "This task is deprecated. Please switch to using NuGetCommand@2's 'restore' or 'custom' option https://learn.microsoft.com/en-us/azure/devops/pipelines/tasks/reference/nuget-command-v2"
149150
}
150151
}

Tasks/NuGetInstallerV0/task.loc.json

+4-3
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"author": "Microsoft Corporation",
1010
"version": {
1111
"Major": 0,
12-
"Minor": 231,
12+
"Minor": 232,
1313
"Patch": 0
1414
},
1515
"runsOn": [
@@ -18,7 +18,7 @@
1818
],
1919
"minimumAgentVersion": "2.115.0",
2020
"deprecated": true,
21-
"removalDate": "2023-11-27",
21+
"removalDate": "2023-12-11",
2222
"groups": [
2323
{
2424
"name": "advanced",
@@ -145,6 +145,7 @@
145145
"NGCommon_RemovingSources": "ms-resource:loc.messages.NGCommon_RemovingSources",
146146
"NGCommon_AddingSources": "ms-resource:loc.messages.NGCommon_AddingSources",
147147
"NGCommon_NoSourcesFoundInConfig": "ms-resource:loc.messages.NGCommon_NoSourcesFoundInConfig",
148-
"NGCommon_UnabletoDetectNuGetVersion": "ms-resource:loc.messages.NGCommon_UnabletoDetectNuGetVersion"
148+
"NGCommon_UnabletoDetectNuGetVersion": "ms-resource:loc.messages.NGCommon_UnabletoDetectNuGetVersion",
149+
"DeprecatedTask": "ms-resource:loc.messages.DeprecatedTask"
149150
}
150151
}

Tasks/NuGetRestoreV1/Strings/resources.resjson/en-US/resources.resjson

+2-1
Original file line numberDiff line numberDiff line change
@@ -55,5 +55,6 @@
5555
"loc.messages.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.",
5656
"loc.messages.UnsupportedProjectScopedFeeds": "Project-scoped feeds are not supported by this version of the \"NuGet Restore\" task. Please use the \"NuGet\" task version 2 or higher.",
5757
"loc.messages.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'.",
58-
"loc.messages.Error_IncludeNuGetOrgEnabled": "Packages failed to restore. Edit your build task and set 'includeNuGetOrg' to 'false' or deselect 'Use packages from NuGet.org'."
58+
"loc.messages.Error_IncludeNuGetOrgEnabled": "Packages failed to restore. Edit your build task and set 'includeNuGetOrg' to 'false' or deselect 'Use packages from NuGet.org'.",
59+
"loc.messages.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"
5960
}

0 commit comments

Comments
 (0)