public override object GetValue(MemberInfo member, object instance) { var toolPath = ToolPathResolver.TryGetEnvironmentExecutable($"{member.Name.ToUpperInvariant()}_EXE") ?? ToolPathResolver.GetPackageExecutable(_packageId, _packageExecutable, Framework); return(new Tool(new ToolExecutor(toolPath).Execute)); }
public static Tool GetPackageTool(string packageId, string packageExecutable, string version = null, string framework = null) { var toolPath = ToolPathResolver.GetPackageExecutable(packageId, packageExecutable, version, framework); return(new ToolExecutor(toolPath).Execute); }