2016-02-02 18:04:50 +00:00
|
|
|
using System;
|
|
|
|
using System.Collections.Generic;
|
|
|
|
using System.Linq;
|
|
|
|
|
|
|
|
namespace Microsoft.DotNet.Cli.Build.Framework
|
|
|
|
{
|
|
|
|
[AttributeUsage(AttributeTargets.Method, AllowMultiple = false, Inherited = false)]
|
2016-02-20 01:00:41 +00:00
|
|
|
public class TargetAttribute : Attribute
|
|
|
|
{
|
2016-02-02 18:04:50 +00:00
|
|
|
public string Name { get; set; }
|
|
|
|
public IEnumerable<string> Dependencies { get; }
|
|
|
|
|
|
|
|
public TargetAttribute()
|
|
|
|
{
|
|
|
|
Dependencies = Enumerable.Empty<string>();
|
|
|
|
}
|
|
|
|
|
|
|
|
// Attributes can only use constants, so a comma-separated string is better :)
|
|
|
|
public TargetAttribute(params string[] dependencies)
|
|
|
|
{
|
|
|
|
Dependencies = dependencies;
|
|
|
|
}
|
2016-02-20 01:00:41 +00:00
|
|
|
}
|
2016-02-02 18:04:50 +00:00
|
|
|
}
|