예제 #1
0
        private static FileResource ReadPackagePrimaryFile(IFolder folder, string packageName, FolderResource buildFolder)
        {
            var dllFile = buildFolder.Then(FileName.From(packageName, "dll"));

            if (folder.FileExists(dllFile))
            {
                return(dllFile);
            }

            var exeFile = buildFolder.Then(FileName.From(packageName, "exe"));

            if (folder.FileExists(exeFile))
            {
                return(exeFile);
            }

            return(null);
        }
예제 #2
0
 public FolderResource ExpandBuild(FolderResource packageFolder)
 {
     return(!InSolution
                         ? packageFolder
                         : packageFolder.Then(FolderResource.From("bin/" + SolutionConfiguration)));
 }