We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5a7eb63 commit b1cae0aCopy full SHA for b1cae0a
WoofWare.DotnetRuntimeLocator/DotnetEnvironmentInfo.cs
@@ -188,7 +188,11 @@ public static DotnetEnvironmentInfo GetSpecific(FileInfo? dotnetExe)
188
/// <exception cref="Exception">Throws on any failure; handles nothing gracefully.</exception>
189
public static DotnetEnvironmentInfo Get()
190
{
191
- var dotnetExe = LocateDotnetExe();
+ var dotnetExe = Environment.GetEnvironmentVariable("WOOFWARE_DOTNET_LOCATOR_DOTNET_EXE") switch
192
+ {
193
+ null => LocateDotnetExe(),
194
+ var s => new FileInfo(s)
195
+ };
196
197
// `null` can happen! Maybe we're self-contained.
198
return GetSpecific(dotnetExe);
0 commit comments