Headquarter-Sharp 1.0.1.1

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

Headquarter-Sharp

A .NET port of the Headquarter library.

Installation

dotnet add package Headquarter-Sharp

Configuration

Set the following environment variables:

Logging

  • Logging__MinimumLevel__Default - Default log level (e.g., Debug)
  • Logging__MinimumLevel__Override__Microsoft - Microsoft log level (e.g., Warning)

DhmKey

  • DhmKey__Root - Root value
  • DhmKey__ServerPublic - Server public key
  • DhmKey__Prime - Prime value

Game

  • Game__Version - Game version (e.g., 38024)

Preferences

  • Preferences__Language - Language (e.g., English)
  • Preferences__Region - Region (e.g., Europe)
  • Preferences__District - District (e.g., 0)
  • Preferences__PlayerStatus - Player status (e.g., Online)

Credentials

  • Credentials__Username - Account email
  • Credentials__Password - Account password
  • Credentials__Character - Character name
  • Credentials__Secret - 2FA secret
  • Credentials__ComputerUser - Computer user
  • Credentials__ComputerName - Computer name
  • Credentials__ComputerUnique - Unique identifier

Usage

var builder = HeadquarterApplication.Create();
builder.Configuration.AddEnvironmentVariables();
builder.Logging.AddConsole();

var app = builder.Build();
var loginResult = await app.PortalLogin(CancellationToken.None);
if (loginResult is not LoginResult.Success success)
{
    return;
}

await app.Run(success.Context, CancellationToken.None);

License

See LICENSE.txt

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
1.0.1.1 35 1/11/2026
1.0.1 37 1/11/2026
1.0.0.2 35 1/11/2026
1.0.0.1 38 1/11/2026
1.0.0 32 1/11/2026