Skip to content

Commit 699c1d5

Browse files
[DotNetCoreCLIV2] Switched to Native Promises - dotnet pack (#21028)
1 parent e7d5aa5 commit 699c1d5

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

Tasks/DotNetCoreCLIV2/packcommand.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ export async function run(): Promise<void> {
135135
}
136136
}
137137

138-
function dotnetPackAsync(dotnetPath: string, packageFile: string, outputDir: string, nobuild: boolean, includeSymbols: boolean, includeSource: boolean, version: string, properties: string[], verbosity: string): Q.Promise<number> {
138+
async function dotnetPackAsync(dotnetPath: string, packageFile: string, outputDir: string, nobuild: boolean, includeSymbols: boolean, includeSource: boolean, version: string, properties: string[], verbosity: string): Promise<number> {
139139
let dotnet = tl.tool(dotnetPath);
140140

141141
dotnet.arg("pack");
@@ -175,5 +175,5 @@ function dotnetPackAsync(dotnetPath: string, packageFile: string, outputDir: str
175175
dotnet.arg(verbosity);
176176
}
177177

178-
return dotnet.exec({ cwd: path.dirname(packageFile) } as IExecOptions);
178+
return dotnet.execAsync({ cwd: path.dirname(packageFile) } as IExecOptions) as Promise<number>;
179179
}

Tasks/DotNetCoreCLIV2/task.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
"demands": [],
1818
"version": {
1919
"Major": 2,
20-
"Minor": 256,
21-
"Patch": 3
20+
"Minor": 257,
21+
"Patch": 1
2222
},
2323
"minimumAgentVersion": "2.144.0",
2424
"instanceNameFormat": "dotnet $(command)",

Tasks/DotNetCoreCLIV2/task.loc.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
"demands": [],
1818
"version": {
1919
"Major": 2,
20-
"Minor": 256,
21-
"Patch": 3
20+
"Minor": 257,
21+
"Patch": 1
2222
},
2323
"minimumAgentVersion": "2.144.0",
2424
"instanceNameFormat": "ms-resource:loc.instanceNameFormat",

0 commit comments

Comments
 (0)