Skip to content

Commit edc4bd5

Browse files
author
himanshu yadav
authored
Changed files to use strict mode, to make "let" work with node 5 (#10219)
* used strict mode * Removed extra space in readme.md, dummy change for queueing checks for PR.
1 parent d6a57a0 commit edc4bd5

18 files changed

+18
-3
lines changed

Tasks/UseDotNetV2/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
## Overview
44

55
The Use .NET Core task acquires a specific version of [.NET Core](https://docs.microsoft.com/en-us/dotnet/core/tools/?tabs=netcore2x) from internet or the tools cache and adds it to the PATH of the Azure Pipelines Agent (hosted or private). Use this task to change the version of .NET Core used in subsequent tasks like [.NET Core cli task](https://github.com/Microsoft/azure-pipelines-tasks/tree/master/Tasks/DotNetCoreCLIV2).
6-
Adding this task before the [.NET Core cli task](https://github.com/Microsoft/azure-pipelines-tasks/tree/master/Tasks/DotNetCoreCLIV2) in a build definition ensures that the version would be available at the time of building, testing and publishing your app.
6+
Adding this task before the [.NET Core cli task](https://github.com/Microsoft/azure-pipelines-tasks/tree/master/Tasks/DotNetCoreCLIV2) in a build definition ensures that the version would be available at the time of building, testing and publishing your app.
77

88
The tool installer approach also allows you to decouple from the agent update cycles. If the .NET Core version you are looking for is missing from the Azure Pipelines agent (Hosted or Private), then you can use this task to get the right version installed on the agent.
99

Tasks/UseDotNetV2/Tests/L0.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
"use strict";
12
const assert = require('assert');
23
const ttm = require('azure-pipelines-task-lib/mock-test');
34
const os = require('os');

Tasks/UseDotNetV2/Tests/usedotnetTests.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
"use strict";
12
import * as os from 'os';
23
import * as tl from 'azure-pipelines-task-lib/task';
34
import { Constants } from '../versionutilities';

Tasks/UseDotNetV2/Tests/versionFetcherGetDownloadUrlFailTests.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
"use strict";
12
import * as tl from 'azure-pipelines-task-lib/task';
23
import * as os from 'os';
34
import { toolrunner } from './mocks/mockedModels'

Tasks/UseDotNetV2/Tests/versionFetcherGetDownloadUrlPassTests.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
"use strict";
12
import * as tl from 'azure-pipelines-task-lib/task';
23
import * as os from 'os';
34
import { toolrunner } from './mocks/mockedModels'

Tasks/UseDotNetV2/Tests/versionFetcherGetVersionInfoFailTests.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
"use strict";
12
import * as tl from 'azure-pipelines-task-lib/task';
23
import { HttpClientResponse } from "./mocks/mockedModels"
34
var mockery = require('mockery');

Tasks/UseDotNetV2/Tests/versionFetcherGetVersionInfoTestsCorrect.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
"use strict";
12
import * as tl from 'azure-pipelines-task-lib/task';
23
import { HttpClientResponse } from "./mocks/mockedModels"
34
var mockery = require('mockery');

Tasks/UseDotNetV2/Tests/versionInstallerDownloadAndInstallTests.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
"use strict";
12
import * as tl from 'azure-pipelines-task-lib/task';
23
import * as os from 'os';
34
import { toolrunner } from './mocks/mockedModels'

Tasks/UseDotNetV2/Tests/versionInstallerIsVersionInstalledTests.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
"use strict";
12
import * as tl from 'azure-pipelines-task-lib/task';
23
import * as path from 'path';
34
import { Constants } from "../versionutilities";

Tasks/UseDotNetV2/Tests/versionInstallerTests.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
"use strict";
12
import * as tl from 'azure-pipelines-task-lib/task';
23
var mockery = require('mockery');
34
mockery.enable({

0 commit comments

Comments
 (0)