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); }
public FolderResource ExpandBuild(FolderResource packageFolder) { return(!InSolution ? packageFolder : packageFolder.Then(FolderResource.From("bin/" + SolutionConfiguration))); }