示例#1
0
        private string GetExecutable(BuildItem toolPath)
        {
            const string toolName = "xunit.console.clr4.exe";

            if (toolPath != null)
            {
                return(toolPath);
            }

            toolPath = new BuildGlob().Include("**/" + toolName).FirstOrDefault();
            if (toolPath == null)
            {
                throw new BuildCsException("Unable to find " + toolName);
            }

            return(toolPath);
        }
示例#2
0
        private string GetExecutable(BuildItem toolPath)
        {
            if (toolPath != null)
            {
                return(toolPath);
            }

            toolPath = new BuildGlob().Include("**/nuget.exe").FirstOrDefault();
            if (toolPath != null)
            {
                return(toolPath);
            }

            toolPath = new BuildGlob().Include("**/NuGet.exe").FirstOrDefault();
            if (toolPath == null)
            {
                throw new BuildCsException("Unabled to find nuget.exe");
            }

            return(toolPath);
        }
示例#3
0
        public void RestorePackages()
        {
            var packageConfigs = new BuildGlob().Include("**/*.sln");

            packageConfigs.Each(pc => RestorePackage(pc, null));
        }