Skip to content

Commit aba5213

Browse files
authored
Users/tedeshpa/dotnet core cli add3 0 deprecation warning (#13220) (#13229)
1 parent ac42172 commit aba5213

File tree

5 files changed

+10
-10
lines changed

5 files changed

+10
-10
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,6 @@
134134
"loc.messages.NGCommon_UnableToFindTool": "Unable to find tool %s",
135135
"loc.messages.Warning_SessionCreationFailed": "Could not create provenance session: %s",
136136
"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, deselect the 'Check for Latest Version' option in the task.",
137-
"loc.messages.NetCore3Update": "Info: Azure Pipelines hosted agents have been updated to contain .Net Core 3.x (3.0 and 3.1) SDK/Runtime along with 2.1. Unless you have locked down a SDK version for your project(s), 3.x SDK might be picked up which might have breaking behavior as compared to previous versions. \nSome commonly encountered changes are: \nIf you're using `Publish` command with -o or --Output argument, you will see that the output folder is now being created at root directory rather than Project File's directory. To learn about more such changes and troubleshoot, refer here: https://docs.microsoft.com/en-us/azure/devops/pipelines/tasks/build/dotnet-core-cli?view=azure-devops#troubleshooting",
138-
"loc.messages.DeprecatingDotnet2_2": ".NET Core SDK/runtime 2.2 is now End of Line(EOL) and will be removed from all agents by end of March, 2020. If you're using 2.2 SDK/runtime, kindly upgrade to newer versions which are not EOL or use UseDotNet task to install the requied version."
137+
"loc.messages.NetCore3Update": "Info: Azure Pipelines hosted agents have been updated to contain .Net Core 3.x (3.1) SDK/Runtime along with 2.1. Unless you have locked down a SDK version for your project(s), 3.x SDK might be picked up which might have breaking behavior as compared to previous versions. \nSome commonly encountered changes are: \nIf you're using `Publish` command with -o or --Output argument, you will see that the output folder is now being created at root directory rather than Project File's directory. To learn about more such changes and troubleshoot, refer here: https://docs.microsoft.com/en-us/azure/devops/pipelines/tasks/build/dotnet-core-cli?view=azure-devops#troubleshooting",
138+
"loc.messages.DeprecatedDotnet2_2_And_3_0": ".NET Core SDK/runtime 2.2 and 3.0 are now End of Line(EOL) and have been removed from all agents. If you're using these SDK/runtimes, kindly upgrade to newer versions which are not EOL, or else use UseDotNet task to install the requied version."
139139
}

Tasks/DotNetCoreCLIV2/dotnetcore.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ export class dotNetExe {
8888
private async executeBasicCommand() {
8989
var dotnetPath = tl.which("dotnet", true);
9090

91-
tl.loc('DeprecatingDotnet2_2');
91+
tl.warning(tl.loc('DeprecatedDotnet2_2_And_3_0'));
9292

9393
this.extractOutputArgument();
9494

@@ -142,7 +142,7 @@ export class dotNetExe {
142142

143143
private async executeTestCommand(): Promise<void> {
144144
const dotnetPath = tl.which('dotnet', true);
145-
tl.loc('DeprecatingDotnet2_2');
145+
tl.warning(tl.loc('DeprecatedDotnet2_2_And_3_0'));
146146
const enablePublishTestResults: boolean = tl.getBoolInput('publishTestResults', false) || false;
147147
const resultsDirectory = tl.getVariable('Agent.TempDirectory');
148148
if (enablePublishTestResults && enablePublishTestResults === true) {

Tasks/DotNetCoreCLIV2/restorecommand.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import * as pkgLocationUtils from 'packaging-common/locationUtilities';
1212
import { getProjectAndFeedIdFromInputParam, logError } from 'packaging-common/util';
1313

1414
export async function run(): Promise<void> {
15-
tl.loc('DeprecatingDotnet2_2');
15+
tl.warning(tl.loc('DeprecatedDotnet2_2_And_3_0'));
1616
let packagingLocation: pkgLocationUtils.PackagingLocation;
1717
try {
1818
packagingLocation = await pkgLocationUtils.getPackagingUris(pkgLocationUtils.ProtocolType.NuGet);

Tasks/DotNetCoreCLIV2/task.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"version": {
1919
"Major": 2,
2020
"Minor": 171,
21-
"Patch": 3
21+
"Patch": 4
2222
},
2323
"minimumAgentVersion": "2.115.0",
2424
"instanceNameFormat": "dotnet $(command)",
@@ -567,7 +567,7 @@
567567
"NGCommon_UnableToFindTool": "Unable to find tool %s",
568568
"Warning_SessionCreationFailed": "Could not create provenance session: %s",
569569
"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, deselect the 'Check for Latest Version' option in the task.",
570-
"NetCore3Update": "Info: Azure Pipelines hosted agents have been updated to contain .Net Core 3.x (3.0 and 3.1) SDK/Runtime along with 2.1. Unless you have locked down a SDK version for your project(s), 3.x SDK might be picked up which might have breaking behavior as compared to previous versions. \nSome commonly encountered changes are: \nIf you're using `Publish` command with -o or --Output argument, you will see that the output folder is now being created at root directory rather than Project File's directory. To learn about more such changes and troubleshoot, refer here: https://docs.microsoft.com/en-us/azure/devops/pipelines/tasks/build/dotnet-core-cli?view=azure-devops#troubleshooting",
571-
"DeprecatingDotnet2_2": ".NET Core SDK/runtime 2.2 is now End of Line(EOL) and will be removed from all agents by end of March, 2020. If you're using 2.2 SDK/runtime, kindly upgrade to newer versions which are not EOL or use UseDotNet task to install the requied version."
570+
"NetCore3Update": "Info: Azure Pipelines hosted agents have been updated to contain .Net Core 3.x (3.1) SDK/Runtime along with 2.1. Unless you have locked down a SDK version for your project(s), 3.x SDK might be picked up which might have breaking behavior as compared to previous versions. \nSome commonly encountered changes are: \nIf you're using `Publish` command with -o or --Output argument, you will see that the output folder is now being created at root directory rather than Project File's directory. To learn about more such changes and troubleshoot, refer here: https://docs.microsoft.com/en-us/azure/devops/pipelines/tasks/build/dotnet-core-cli?view=azure-devops#troubleshooting",
571+
"DeprecatedDotnet2_2_And_3_0": ".NET Core SDK/runtime 2.2 and 3.0 are now End of Line(EOL) and have been removed from all agents. If you're using these SDK/runtimes, kindly upgrade to newer versions which are not EOL, or else use UseDotNet task to install the requied version."
572572
}
573573
}

Tasks/DotNetCoreCLIV2/task.loc.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"version": {
1919
"Major": 2,
2020
"Minor": 171,
21-
"Patch": 3
21+
"Patch": 4
2222
},
2323
"minimumAgentVersion": "2.115.0",
2424
"instanceNameFormat": "ms-resource:loc.instanceNameFormat",
@@ -568,6 +568,6 @@
568568
"Warning_SessionCreationFailed": "ms-resource:loc.messages.Warning_SessionCreationFailed",
569569
"Warning_UpdatingNuGetVersion": "ms-resource:loc.messages.Warning_UpdatingNuGetVersion",
570570
"NetCore3Update": "ms-resource:loc.messages.NetCore3Update",
571-
"DeprecatingDotnet2_2": "ms-resource:loc.messages.DeprecatingDotnet2_2"
571+
"DeprecatedDotnet2_2_And_3_0": "ms-resource:loc.messages.DeprecatedDotnet2_2_And_3_0"
572572
}
573573
}

0 commit comments

Comments
 (0)