示例#1
0
        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));
        }
示例#2
0
        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);
        }