Bullseye 6.2.0
dotnet add package Bullseye --version 6.2.0
NuGet\Install-Package Bullseye -Version 6.2.0
<PackageReference Include="Bullseye" Version="6.2.0" />
<PackageVersion Include="Bullseye" Version="6.2.0" />
<PackageReference Include="Bullseye" />
paket add Bullseye --version 6.2.0
#r "nuget: Bullseye, 6.2.0"
#:package Bullseye@6.2.0
#addin nuget:?package=Bullseye&version=6.2.0
#tool nuget:?package=Bullseye&version=6.2.0
Bullseye
Bullseye is a .NET library, developed by humans, for running a target dependency graph.
Bullseye is typically used as a build tool for .NET projects, and is usually used together with SimpleExec, but Bullseye targets can do anything. They are not restricted to building .NET projects. Bullseye is useful for any program which performs a series of operations.
Platform support: .NET 8.0 and later.
- Quick start
- Sample wrapper scripts
- Enumerable inputs
- Command-line arguments
- Non-static API
- NO_COLOR
- Who's using Bullseye?
Quick start
- Next to an existing .NET solution (
.sln/.slnxfile), add a .NET console app namedTargets—dotnet new console --name Targets<sup>1</sup> - Change to the new directory —
cd Targets - Add a reference to Bullseye —
dotnet add package Bullseye - Add a reference to SimpleExec —
dotnet add package SimpleExec - Replace the contents of
Targets/Program.cswith:using static Bullseye.Targets; using static SimpleExec.Command; Target("build", () => RunAsync("dotnet", "build --configuration Release")); Target("test", dependsOn: ["build"], () => RunAsync("dotnet", "test --configuration Release --no-build")); Target("default", dependsOn: ["test"]); await RunTargetsAndExitAsync(args, ex => ex is SimpleExec.ExitCodeException); - Change to the solution directory —
cd .. - Run the
Targetsproject —dotnet run --project Targets.
Voilà! You just wrote and ran your first Bullseye build program.
For help, run dotnet run --project Targets -- --help.
<sup>1. You could use a file-based C# program instead, but, at the time of writing, IDE support for file-based C# programs is not complete, so if you want full debugging, Intellisense, etc., it's a better to use a .NET console app.</sup>
Sample wrapper scripts
build (Linux and macOS)
#!/usr/bin/env bash
set -euo pipefail
dotnet run --project Targets -- "$@"
build.cmd (Windows)
@echo Off
dotnet run --project Targets -- %*
Enumerable inputs
For example, you may want to run your test projects one by one, so that the timing of each one and which one, if any, failed, is displayed in the Bullseye build summary:
Target(
"test",
dependsOn: ["build"],
forEach: ["./FooTests.Acceptance", "./FooTests.Performance"],
project => RunAsync($"dotnet", $"test {project} --configuration Release --no-build"));
dotnet run --project Targets -- test
Command-line arguments
Generally, all the command-line arguments passed to Program.cs should be passed along to Bullseye, as shown in the quick start above (RunTargetsAndExitAsync(args);). This is because Bullseye effectively provides a command-line interface (CLI), with options for displaying a list of targets, performing dry runs, suppressing colour, and more. For full details of the command-line options, run your targets project supplying the --help (-h/-?) option:
dotnet run --project Targets -- --help
./build --help
./build.cmd --help
You can also handle custom arguments in Program.cs, but you should ensure that only valid arguments are passed along to Bullseye and that the help text contains both your custom arguments and the arguments supported by Bullseye. A good way to do this is to use a command-line parsing package to define your custom arguments, and to provide translation between the package and Bullseye. For example, see the test projects for:
Non-static API
For most cases, the static API described above is sufficient. For more complex scenarios where a number of target collections are required, the non-static API may be used.
var targets1 = new Targets();
targets1.Add("foo", () => Console.Out.WriteLine("foo1"));
var targets2 = new Targets();
targets2.Add("foo", () => Console.Out.WriteLine("foo2"));
await targets1.RunWithoutExitingAsync(args);
await targets2.RunWithoutExitingAsync(args);
NO_COLOR
Bullseye supports NO_COLOR.
Who's using Bullseye?
To name a few:
- AspNetCore.AsyncInitialization
- Config.SqlStreamStore
- ConfigR
- Elastic
- EssentialMVVM
- FakeItEasy
- Fluxzy
- HumanBytes
- Ibento
- IdentityModel
- IdentityServer
- Iso8601DurationHelper
- Linq.Extras
- LittleForker
- LykkeOSS
- Marten
- MinVer
- Particular
- ProxyKit
- PseudoLocalizer
- Radical Framework
- RealWorld
- SelfInitializingFakes
- SendComics
- SqlStreamStore.Locking
- SQLStreamStore
- Statik
- Tasty
- TemplatedConfiguration
- Xenial
Feel free to send a pull request to add your repository or organisation to this list!
<sub>Target by Franck Juncker from the Noun Project.</sub>
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 is compatible. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
- No dependencies.
-
net8.0
- No dependencies.
-
net9.0
- No dependencies.
NuGet packages (9)
Showing the top 5 NuGet packages that depend on Bullseye:
| Package | Downloads |
|---|---|
|
Apprio.Enablement.Infrastructure
Package Description |
|
|
Faithlife.Build
A build automation system using C# build scripts. |
|
|
Apprio.Azure.Infrastructure
Package Description |
|
|
Dex.IdentityServer4
OpenID Connect and OAuth 2.0 Framework for ASP.NET Core |
|
|
Xenial.Beer
Beer - Delicious dotnet build tools |
GitHub repositories (49)
Showing the top 20 popular GitHub repositories that depend on Bullseye:
| Repository | Stars |
|---|---|
|
xunit/xunit
xUnit.net is a free, open source, community-focused unit testing tool for .NET.
|
|
|
elastic/elasticsearch-net
This strongly-typed, client library enables working with Elasticsearch. It is the official client maintained and supported by Elastic.
|
|
|
aaubry/YamlDotNet
YamlDotNet is a .NET library for YAML
|
|
|
adamhathcock/sharpcompress
SharpCompress is a fully managed C# library to deal with many compression types and formats.
|
|
|
AppMetrics/AppMetrics
App Metrics is an open-source and cross-platform .NET library used to record and report metrics within an application.
|
|
|
realworld-apps/aspnetcore-realworld-example-app
ASP.NET Core backend implementation for RealWorld
|
|
|
servicetitan/Stl.Fusion
Build real-time apps (Blazor included) with less than 1% of extra code responsible for real-time updates. Host 10-1000x faster APIs relying on transparent and nearly 100% consistent caching. We call it DREAM, or Distributed REActive Memoization, and it's here to turn real-time on!
|
|
|
FakeItEasy/FakeItEasy
The easy mocking library for .NET
|
|
|
ProxyKit/ProxyKit
A toolkit to create code-first HTTP reverse proxies on ASP.NET Core
|
|
|
DuendeArchive/IdentityModel
.NET standard helper library for claims-based identity, OAuth 2.0 and OpenID Connect.
|
|
|
SnapXL/SnapX
SnapX is a free, open-source, cross-platform tool that lets you capture or record any area of your screen and instantly share it with a single keypress. Upload images, videos, text, and more to multiple supported destinations—all with ease. ShareX fork
|
|
|
adamralph/minver
🏷 Minimalist .NET packages, developed by humans, for versioning software or content using Git tags.
|
|
|
cofoundry-cms/cofoundry
Cofoundry is an extensible and flexible .NET Core CMS & application framework focusing on code first development
|
|
|
machine/machine.specifications
Machine.Specifications is a Context/Specification framework for .NET that removes language noise and simplifies tests.
|
|
|
adamralph/simple-exec
🏃 A .NET library, developed by humans, for running external commands.
|
|
|
DuendeArchive/IdentityModel.OidcClient
Certified C#/NetStandard OpenID Connect Client Library for native mobile/desktop Applications (RFC 8252)
|
|
|
JasperFx/lamar
Fast Inversion of Control Tool and Successor to StructureMap
|
|
|
Librelancer/Librelancer
A re-implementation of Freelancer
|
|
|
elastic/apm-agent-dotnet
|
|
|
Particular/Workshop
SOA Done Right
|
| Version | Downloads | Last Updated |
|---|---|---|
| 6.2.0 | 6,975 | 9/5/2026 |
| 6.2.0-rc.1 | 1,491 | 5/14/2026 |
| 6.2.0-alpha.3 | 299 | 12/27/2025 |
| 6.2.0-alpha.2 | 190 | 12/25/2025 |
| 6.2.0-alpha.1 | 196 | 12/25/2025 |
| 6.1.0 | 372,683 | 12/27/2025 |
| 6.1.0-rc.2 | 110 | 12/27/2025 |
| 6.1.0-rc.1 | 1,099 | 12/21/2025 |
| 6.0.0 | 360,966 | 4/2/2025 |
| 6.0.0-beta.2 | 2,398 | 3/10/2025 |
| 6.0.0-beta.1 | 724 | 2/23/2025 |
| 5.0.0 | 677,307 | 1/15/2024 |
| 5.0.0-rc.1 | 741 | 12/21/2023 |
| 5.0.0-alpha.2 | 1,039 | 9/25/2023 |
| 5.0.0-alpha.1 | 1,193 | 6/9/2023 |
| 4.2.1 | 313,898 | 1/24/2023 |
| 4.2.1-rc.1 | 738 | 12/3/2022 |
| 4.2.0 | 80,981 | 11/9/2022 |
| 4.2.0-beta.1 | 579 | 10/30/2022 |
| 4.1.1 | 57,225 | 10/22/2022 |