Esempio n. 1
0
 public static IEnumerable <AbsoluteFilePath> SourceCodeFilesIn(AbsoluteDirectoryPath projectDirectory)
 {
     return(Directory.EnumerateFiles(
                projectDirectory.ToString(), "*.cs", SearchOption.AllDirectories)
            .Select(AtmaFileSystemPaths.AbsoluteFilePath)
            .Where(IsNotInDirectory(projectDirectory, "obj")));
 }
Esempio n. 2
0
 public static async Task RunWith(string arguments, AbsoluteDirectoryPath workingDirectory)
 {
     try
     {
         await Command.RunAsync("dotnet", arguments, workingDirectory.ToString());
     }
     catch (ExitCodeException e)
     {
         throw new DotNetExeFailedException(arguments, workingDirectory, e.ExitCode, e);
     }
 }
Esempio n. 3
0
 private static string GetPathRelativeTo(AbsoluteDirectoryPath projectDirectory, AbsoluteFilePath file)
 {
     return(file.ToString().Replace(projectDirectory.ToString() + Path.DirectorySeparatorChar, ""));
 }