FileBasedApp.Toolkit.Dotnet
1.0.1
dotnet add package FileBasedApp.Toolkit.Dotnet --version 1.0.1
NuGet\Install-Package FileBasedApp.Toolkit.Dotnet -Version 1.0.1
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="FileBasedApp.Toolkit.Dotnet" Version="1.0.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="FileBasedApp.Toolkit.Dotnet" Version="1.0.1" />
<PackageReference Include="FileBasedApp.Toolkit.Dotnet" />
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add FileBasedApp.Toolkit.Dotnet --version 1.0.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: FileBasedApp.Toolkit.Dotnet, 1.0.1"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package FileBasedApp.Toolkit.Dotnet@1.0.1
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=FileBasedApp.Toolkit.Dotnet&version=1.0.1
#tool nuget:?package=FileBasedApp.Toolkit.Dotnet&version=1.0.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
FilebasedApp.Toolkit.Dotnet
Fluent builders and recipes for common dotnet CLI commands.
Features
DotnetBaseRunner<TSelf>— abstract base class providing shared--configurationand--verbosityoptionsDotnetPackSimpleRunner— fluent wrapper arounddotnet packwith options for output directory, symbols, versioning, runtime, and moreDotnetNugetPushSimpleRunner— fluent wrapper arounddotnet nuget pushwith options for source, API key, skip-duplicate, timeout, and moreDotnetRecipes— higher-level helpers that compose dotnet CLI commands into common workflowsPackageRequest/SearchResult/Package— records for deserializingdotnet package search --format jsonoutputPackageRequestExtension— helpers for flattening and querying package search results
Examples
Packing a project
using FilebasedApp.Toolkit.Dotnet;
using TruePath;
var output = AbsolutePath.Create("/artifacts");
await DotnetPackSimpleRunner.Init()
.WithProject(AbsolutePath.Create("/src/MyProject.csproj"))
.WithConfiguration("Release")
.WithOutput(output)
.WithVersionSuffix("beta-01")
.RunAsync();
Pushing a NuGet package
using FilebasedApp.Toolkit.Dotnet;
using TruePath;
await DotnetNugetPushSimpleRunner.Init()
.WithPackage(AbsolutePath.Create("/artifacts/MyPackage.1.0.0.nupkg"))
.WithSource("https://api.nuget.org/v3/index.json")
.WithApiKey(apiKey)
.WithSkipDuplicate()
.RunAsync();
Searching for a NuGet package
using FilebasedApp.Toolkit.Dotnet;
var result = await DotnetRecipes.GetPackageInformation("Newtonsoft.Json", includePrerelease: false);
// Get the highest version of a specific package
var package = result.GetHighestVersion("Newtonsoft.Json");
Console.WriteLine($"{package.Id} {package.LatestVersion}");
// Flatten all packages across all sources
foreach (var (sourceName, pkg) in result.FlattenedPackages)
{
Console.WriteLine($"[{sourceName}] {pkg.Id} {pkg.LatestVersion}");
}
Bugs or things missing
Feel free to create an issue or submit a pull request.
Credits
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | 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. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net10.0
- FileBasedApp.Toolkit (>= 1.0.1)
- NuGet.Versioning (>= 7.9.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 1.0.1 | 43 | 8/25/2026 |
| 1.0.0 | 95 | 8/23/2026 |
| 0.21.0 | 124 | 7/12/2026 |
| 0.20.0 | 172 | 4/17/2026 |
| 0.20.0-rc-01 | 109 | 4/16/2026 |
| 0.19.0 | 137 | 4/8/2026 |
| 0.19.0-rc-01 | 108 | 4/8/2026 |
| 0.18.1 | 121 | 4/5/2026 |
| 0.18.0 | 123 | 4/5/2026 |
| 0.18.0-rc-01 | 108 | 4/5/2026 |