public static string GetEnvironmentExecutable(string environmentExecutable) { var environmentExecutablePath = EnvironmentInfo.EnsureVariable(environmentExecutable); ControlFlow.Assert(File.Exists(environmentExecutablePath), $"Path '{environmentExecutablePath}' from environment variable '{environmentExecutable}' does not exist."); return(environmentExecutablePath); }