DxWorks.Hub.Sdk 2.0.0

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

DxWorks Hub SDK

This is the API for the DxWorks Hub SDK. It contains the interfaces and classes that are used by the Hub SDK to communicate with the DxWorks Hub.

It downloads the git repository and works with the files and folders from there.

Usage

Add to Dependency Injection

services.AddDxWorksHubSdk();

Configuration

  • RepositoryUrl: The URL of the git repository to download. Default is "https://github.com/dxworks/dxworks-hub.git"
  • MainBranch: The name of the main branch. Default is "main"
  • HubDownloadFolder: The download folder of the repository data. Default is "{UserFolder}/.dxw/hub"

example to configure

serviceCollection.AddDxWorksHubSdk(options =>
{
    options.HubDownloadFolder = "path/to/folder";
});

Update repository

IDxWorksHubClient client;

client.UpdateRepository();
IDxWorksHubClient client;

await client.UpdateRepositoryAsync();

Get Projects

IDxWorksHubClient client;

IEnumerable<DxWorksProject> projects = client.GetProjects();
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
2.0.0 312 3/29/2026
1.0.3 432 3/18/2023
1.0.2 413 3/18/2023 1.0.2 is deprecated because it has critical bugs.
1.0.1 515 12/17/2022
1.0.0 444 12/10/2022

# Version 2.0.0

## Upgrades

- Upgrade to dotnet 10
- Upgrade LibGit2Sharp to 0.31.0
- Upgrade Microsoft.Extensions.Configuration to 10.0.5
- Ugrade Microsoft.Extensions.Options.ConfigurationExtensions to 10.0.5
- Upgrade YamlDotNet to 16.3.0


## Changes

- use options "MainBranch"
- added options "HubDownloadFolder" to override the repository download folder