Nexus.Casp.Sdk 2026.10.7

dotnet add package Nexus.Casp.Sdk --version 2026.10.7
                    
NuGet\Install-Package Nexus.Casp.Sdk -Version 2026.10.7
                    
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="Nexus.Casp.Sdk" Version="2026.10.7" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Nexus.Casp.Sdk" Version="2026.10.7" />
                    
Directory.Packages.props
<PackageReference Include="Nexus.Casp.Sdk" />
                    
Project file
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 Nexus.Casp.Sdk --version 2026.10.7
                    
#r "nuget: Nexus.Casp.Sdk, 2026.10.7"
                    
#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 Nexus.Casp.Sdk@2026.10.7
                    
#: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=Nexus.Casp.Sdk&version=2026.10.7
                    
Install as a Cake Addin
#tool nuget:?package=Nexus.Casp.Sdk&version=2026.10.7
                    
Install as a Cake Tool

Nexus.Casp.Sdk

The Quantoz Nexus CASP API client for .NET, including dependency injection and authentication support.

Install the package:

dotnet add package Nexus.Casp.Sdk

Register the client in your service collection:

services.AddNexusCaspSdk();

The SDK uses bearer authentication by default. Provide an implementation of INexusApiGetAccessToken to supply access tokens, and register it with your application's dependency injection container. NexusClient can then be injected into services that call the API.

To send an extra header with every subsequent request from the injected client (scoped per DI scope, e.g. per HTTP request), use AddHeader:

nexusClient.AddHeader("x-Correlation-Id", correlationId);

Calling AddHeader again with the same name replaces the value; RemoveHeader removes it.

The package includes portable PDB symbols and Source Link information for stepping into the SDK when debugging from a supported IDE.

Publishing

The CASP release workflow publishes Nexus.Casp.Sdk to both GitHub Packages and nuget.org. NuGet publishing uses trusted publishing to exchange a GitHub OIDC token for a short-lived API key.

Before running a release:

  1. Sign in to nuget.org and add a Trusted Publishing policy for the owner of Nexus.Casp.Sdk, configured as follows:
    • Push scope: Push new packages and package versions
    • Glob Patterns and Packages: Nexus.Casp.Sdk
    • Repository owner: QuantozTechnology
    • Repository: Nexus.Crypto.Sdk
    • Workflow file: casp-release.yml (file name only)
    • Environment: leave empty; this workflow does not use a GitHub environment.
  2. Set the repository Actions secret NUGET_USER to the authorized nuget.org account's username (profile name, not an email address).

No long-lived NUGET_API_KEY secret is required for CASP releases. GitHub Packages continues to use the workflow's GITHUB_TOKEN. Both package pushes skip duplicate versions so a partially published release can be retried. Other SDK publishing is unchanged.

Product 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.

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
2026.10.7 46 10/7/2026