dotnet-installer/scripts/Microsoft.DotNet.Cli.Build.Framework/TargetAttribute.cs

24 lines
680 B
C#
Raw Normal View History

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)]
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-02 18:04:50 +00:00
}