forked from cake-build/cake
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDotNetPackageList.cs
45 lines (39 loc) · 1.32 KB
/
DotNetPackageList.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
using System.Collections.Generic;
using System.Text.Json.Serialization;
namespace Cake.Common.Tools.DotNet.Package.List
{
/// <summary>
/// An result as returned by <see cref="DotNetPackageLister"/>.
/// </summary>
public sealed class DotNetPackageList
{
/// <summary>
/// Gets the output version.
/// </summary>
[JsonInclude]
public int Version { get; private set; }
/// <summary>
/// Gets the specified parameters.
/// </summary>
[JsonInclude]
public string Parameters { get; private set; }
/// <summary>
/// Gets the problems.
/// </summary>
[JsonInclude]
public IEnumerable<DotNetPackageListProblemItem> Problems { get; private set; }
/// <summary>
/// Gets the used sources.
/// </summary>
[JsonInclude]
public IEnumerable<string> Sources { get; private set; }
/// <summary>
/// Gets the projects.
/// </summary>
[JsonInclude]
public IEnumerable<DotNetPackageListProjectItem> Projects { get; private set; }
}
}