Пример #1
0
    override public bool Execute()
    {
        var targetsToPack = this.Targets
                            .Where(_ => _.ItemSpec.EndsWith(".dll"))
                            .Where(_ => !_.ItemSpec.EndsWith(".Test.dll"));

        var output = new List <ITaskItem>();

        foreach (var target in targetsToPack)
        {
            output.Add(new TaskItem(Nuget.Pack(Log, target.GetMetadata("MSBuildSourceProjectFile"), this.OutputDirectory, Version)));
        }
        Outputs = output.ToArray();

        return(true);
    }
Пример #2
0
    public bool Execute()
    {
        var targetsToPack = this.Targets
                            .Where(_ => _.ItemSpec.EndsWith(".dll"))
                            .Where(_ => !_.ItemSpec.EndsWith(".Test.dll"));

        Console.WriteLine(String.Join("\r\n", targetsToPack));

        var output = new List <ITaskItem>();

        foreach (var target in targetsToPack)
        {
            // Util.Dump(Console.Out, target);
            output.Add(new TaskItem(Nuget.Pack(target.GetMetadata("MSBuildSourceProjectFile"), this.OutputDirectory, Version)));
        }
        Outputs = output.ToArray();

        return(true);
    }