You've already forked setup-dotnet
mirror of
https://github.com/actions/setup-dotnet.git
synced 2025-07-11 09:30:32 +07:00
Compare commits
1 Commits
Author | SHA1 | Date | |
---|---|---|---|
1c11308e52 |
@ -72,6 +72,8 @@ class DotnetCoreInstaller {
|
|||||||
else {
|
else {
|
||||||
console.log('Using cached tool');
|
console.log('Using cached tool');
|
||||||
}
|
}
|
||||||
|
// Need to set this so that .NET Core global tools find the right locations.
|
||||||
|
core.exportVariable('DOTNET_ROOT', path.join(toolPath, '../..'));
|
||||||
// Prepend the tools path. instructs the agent to prepend for future tasks
|
// Prepend the tools path. instructs the agent to prepend for future tasks
|
||||||
core.addPath(toolPath);
|
core.addPath(toolPath);
|
||||||
});
|
});
|
||||||
|
@ -58,6 +58,9 @@ export class DotnetCoreInstaller {
|
|||||||
console.log('Using cached tool');
|
console.log('Using cached tool');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Need to set this so that .NET Core global tools find the right locations.
|
||||||
|
core.exportVariable('DOTNET_ROOT', path.join(toolPath, '../..'));
|
||||||
|
|
||||||
// Prepend the tools path. instructs the agent to prepend for future tasks
|
// Prepend the tools path. instructs the agent to prepend for future tasks
|
||||||
core.addPath(toolPath);
|
core.addPath(toolPath);
|
||||||
}
|
}
|
||||||
@ -171,6 +174,7 @@ export class DotnetCoreInstaller {
|
|||||||
this.version,
|
this.version,
|
||||||
this.arch
|
this.arch
|
||||||
);
|
);
|
||||||
|
|
||||||
console.log('Successfully installed', this.version);
|
console.log('Successfully installed', this.version);
|
||||||
return cachedDir;
|
return cachedDir;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user