Skip to content

Commit a537be5

Browse files
zarennerjmyersmsft
authored andcommitted
Allow NuGet tasks to work in Release Management by using System.DefaultWorkingDirectory instead of Agent.BuildDirectory
1 parent 263617b commit a537be5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

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

27-
private tempNugetConfigDir = path.join(tl.getVariable('agent.buildDirectory'), 'Nuget');
27+
private tempNugetConfigDir = path.join(tl.getVariable('system.defaultWorkingDirectory') || process.cwd(), 'Nuget');
2828
private tempNugetConfigFileName = 'tempNuGet_' + tl.getVariable('build.buildId') + '.config';
2929
public tempNugetConfigPath = path.join(this.tempNugetConfigDir, this.tempNugetConfigFileName);
3030

0 commit comments

Comments
 (0)