Skip to content

Commit 3b3ec02

Browse files
authored
Merge pull request #2167 from jmyersmsft/tempConfigDirM103
NuGet tasks: Don't put the temp nuget.config in a subdirectory of the…
2 parents c29c4c5 + 8fd9948 commit 3b3ec02

File tree

5 files changed

+6
-5
lines changed

5 files changed

+6
-5
lines changed

Tasks/Common/nuget-task-common/NuGetConfigHelper.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@ export class NuGetConfigHelper {
2424
private _authInfo: auth.NuGetAuthInfo;
2525
private _environmentSettings: ngToolRunner.NuGetEnvironmentSettings;
2626

27-
private tempNugetConfigDir = path.join(tl.getVariable('system.defaultWorkingDirectory') || process.cwd(), 'Nuget');
27+
private tempNugetConfigBaseDir = tl.getVariable('Agent.BuildDirectory') || tl.getVariable('Agent.ReleaseDirectory') || process.cwd();
28+
private tempNugetConfigDir = path.join(this.tempNugetConfigBaseDir, 'Nuget');
2829
private tempNugetConfigFileName = 'tempNuGet_' + tl.getVariable('build.buildId') + '.config';
2930
public tempNugetConfigPath = path.join(this.tempNugetConfigDir, this.tempNugetConfigFileName);
3031

Tasks/NuGetInstaller/task.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"version": {
1010
"Major": 0,
1111
"Minor": 2,
12-
"Patch": 4
12+
"Patch": 5
1313
},
1414
"minimumAgentVersion": "1.83.0",
1515
"groups": [

Tasks/NuGetInstaller/task.loc.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"version": {
1010
"Major": 0,
1111
"Minor": 2,
12-
"Patch": 4
12+
"Patch": 5
1313
},
1414
"minimumAgentVersion": "1.83.0",
1515
"groups": [

Tasks/NugetPublisher/task.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"version": {
1010
"Major": 0,
1111
"Minor": 2,
12-
"Patch": 3
12+
"Patch": 5
1313
},
1414
"demands": [
1515
"Cmd"

Tasks/NugetPublisher/task.loc.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"version": {
1010
"Major": 0,
1111
"Minor": 2,
12-
"Patch": 3
12+
"Patch": 5
1313
},
1414
"demands": [
1515
"Cmd"

0 commit comments

Comments
 (0)