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
<PackageReference Include="DxWorks.Hub.Sdk" Version="2.0.0" />
<PackageVersion Include="DxWorks.Hub.Sdk" Version="2.0.0" />
<PackageReference Include="DxWorks.Hub.Sdk" />
paket add DxWorks.Hub.Sdk --version 2.0.0
#r "nuget: DxWorks.Hub.Sdk, 2.0.0"
#:package DxWorks.Hub.Sdk@2.0.0
#addin nuget:?package=DxWorks.Hub.Sdk&version=2.0.0
#tool nuget:?package=DxWorks.Hub.Sdk&version=2.0.0
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 | 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. |
-
net10.0
- LibGit2Sharp (>= 0.31.0)
- Microsoft.Extensions.Configuration (>= 10.0.5)
- Microsoft.Extensions.Options.ConfigurationExtensions (>= 10.0.5)
- YamlDotNet (>= 16.3.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 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