Skip to content
Adam Ralph edited this page Dec 8, 2017 · 11 revisions
  • Install .NET Core SDK 2.0.0 or later.
  • In a console:
    mkdir targets
    cd targets
    dotnet new console
    dotnet add package Bullseye -v 1.0.0-alpha0002
  • Add to targets.csproj:
    <PropertyGroup>
      <LangVersion>latest</LangVersion>
    </PropertyGroup>
  • Replace Program.cs:
    using System.Threading.Tasks;
    using static Bullseye.Targets;
    
    class Program
    {
        static async Task<int> Main(string[] args)
        {
            Add("default", () => System.Console.Out.WriteLineAsync("Hello, world!"));
            return await RunAsync(args);
        }
    }
  • In a console:
    dotnet run
  • For help:
    dotnet run -- --help
Clone this wiki locally