Skip to content

Commit 0ac84e3

Browse files
authored
[DotnetCoreCLIV2]removing versions deprecation warning and making it info message (#13286)
1 parent aba5213 commit 0ac84e3

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,5 +135,5 @@
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.",
137137
"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."
138+
"loc.messages.DeprecatedDotnet2_2_And_3_0": "Info: .NET Core SDK/runtime 2.2 and 3.0 are now End of Life(EOL) and have been removed from all hosted agents. If you're using these SDK/runtimes on hosted agents, kindly upgrade to newer versions which are not EOL, or else use UseDotNet task to install the required 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.warning(tl.loc('DeprecatedDotnet2_2_And_3_0'));
91+
console.log(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.warning(tl.loc('DeprecatedDotnet2_2_And_3_0'));
145+
console.log(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.warning(tl.loc('DeprecatedDotnet2_2_And_3_0'));
15+
console.log(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: 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": 4
21+
"Patch": 5
2222
},
2323
"minimumAgentVersion": "2.115.0",
2424
"instanceNameFormat": "dotnet $(command)",
@@ -568,6 +568,6 @@
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.",
570570
"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."
571+
"DeprecatedDotnet2_2_And_3_0": "Info: .NET Core SDK/runtime 2.2 and 3.0 are now End of Life(EOL) and have been removed from all hosted agents. If you're using these SDK/runtimes on hosted agents, kindly upgrade to newer versions which are not EOL, or else use UseDotNet task to install the required version."
572572
}
573573
}

Tasks/DotNetCoreCLIV2/task.loc.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"version": {
1919
"Major": 2,
2020
"Minor": 171,
21-
"Patch": 4
21+
"Patch": 5
2222
},
2323
"minimumAgentVersion": "2.115.0",
2424
"instanceNameFormat": "ms-resource:loc.instanceNameFormat",

0 commit comments

Comments
 (0)