コード例 #1
0
    public static async Task <List <PendingUpdate> > ReadPendingUpdates(string file)
    {
        var directory = Directory.GetParent(file) !.FullName;
        var lines     = await DotnetStarter.StartDotNet($"list {file} package --outdated", directory);

        return(ParseWithUpdates(lines).ToList());
    }
コード例 #2
0
    public static Task Run(string solution)
    {
        var solutionDirectory = Directory.GetParent(solution) !.FullName;

        return(DotnetStarter.StartDotNet($"restore {solution}", solutionDirectory));
    }