File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -72,6 +72,8 @@ class DotnetCoreInstaller {
72
72
else {
73
73
console . log ( 'Using cached tool' ) ;
74
74
}
75
+ // Need to set this so that .NET Core global tools find the right locations.
76
+ core . exportVariable ( 'DOTNET_ROOT' , path . join ( toolPath , '../..' ) ) ;
75
77
// Prepend the tools path. instructs the agent to prepend for future tasks
76
78
core . addPath ( toolPath ) ;
77
79
} ) ;
Original file line number Diff line number Diff line change @@ -58,6 +58,9 @@ export class DotnetCoreInstaller {
58
58
console . log ( 'Using cached tool' ) ;
59
59
}
60
60
61
+ // Need to set this so that .NET Core global tools find the right locations.
62
+ core . exportVariable ( 'DOTNET_ROOT' , path . join ( toolPath , '../..' ) ) ;
63
+
61
64
// Prepend the tools path. instructs the agent to prepend for future tasks
62
65
core . addPath ( toolPath ) ;
63
66
}
@@ -171,6 +174,7 @@ export class DotnetCoreInstaller {
171
174
this . version ,
172
175
this . arch
173
176
) ;
177
+
174
178
console . log ( 'Successfully installed' , this . version ) ;
175
179
return cachedDir ;
176
180
}
You can’t perform that action at this time.
0 commit comments