Darp.Utils.Assets
1.11.0
See the version list below for details.
dotnet add package Darp.Utils.Assets --version 1.11.0
NuGet\Install-Package Darp.Utils.Assets -Version 1.11.0
<PackageReference Include="Darp.Utils.Assets" Version="1.11.0" />
<PackageVersion Include="Darp.Utils.Assets" Version="1.11.0" />
<PackageReference Include="Darp.Utils.Assets" />
paket add Darp.Utils.Assets --version 1.11.0
#r "nuget: Darp.Utils.Assets, 1.11.0"
#addin nuget:?package=Darp.Utils.Assets&version=1.11.0
#tool nuget:?package=Darp.Utils.Assets&version=1.11.0
Darp.Utils
This repository bundles all open source c# helper modules of 'rosslight GmbH'. To extend, add a new project and test project.
Darp.Utils.Assets
A collection of simple interfaces for app assets targeting desktop apps.
Currently implemented:
AppDataAssetsService
: Read or write to theApplicationData
. The relativePath might be e.g. the app name.
Example:
ServiceProvider provider = new ServiceCollection()
.AddAppDataAssetsService("RelativePath")
.BuildServiceProvider();
IAppDataAssetsService service = provider.GetRequiredService<IAppDataAssetsService>();
await service.SerializeJsonAsync("test.json", new { Prop1 = "value" });
Darp.Utils.Configuration
A writable configuration service. Can be registered using DI and injected into target services. Usage might include reading, writing and listening to changes via the INotifyPropertyChanged interface.
Example:
ServiceProvider provider = new ServiceCollection()
.AddAppDataAssetsService("RelativePath")
.AddConfigurationFile<TestConfig, IAppDataAssetsService>("config.json")
.BuildServiceProvider();
IConfigurationService<TestConfig> service = provider.GetRequiredService<IConfigurationService<TestConfig>>();
TestConfig config = await service.LoadConfigurationAsync();
await service.WriteConfigurationAsync(config with { Setting = "NewValue" });
Darp.Utils.Dialog
A lightweight dialog service which allows for opening dialogs from the ViewModel.
Implementation | Description |
---|---|
Implementation based on FluentAvalonia |
Example:
ServiceProvider provider = new ServiceCollection()
.AddSingleton<IDialogService, AvaloniaDialogService>()
.BuildServiceProvider();
IDialogService dialogService = provider.GetRequiredService<IDialogService>();
// Specify the Type of the dataContext of the window the dialog is supposed to be shown on
// .WithDialogRoot<MainWindowViewModel>()
await _dialogService.CreateMessageBoxDialog("Title", "Message").ShowAsync();
// Assumes you have registered a view for 'SomeViewModel' in a ViewLocator
// Works with any kind of content
var viewModel = new SomeViewModel();
await _dialogService.CreateContentDialog("Title", viewModel)
.SetDefaultButton(ContentDialogButton.Primary)
.SetCloseButton("Close")
.SetPrimaryButton("Ok", onClick: model => model.IsModelValid)
.ShowAsync();
Darp.Utils.ResxSourceGenerator
A source generator for generating strongly typed singleton resource classes from .resx files. Additional documentation here.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. |
-
net8.0
- Glob (>= 1.1.9)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 8.0.2)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Darp.Utils.Assets:
Package | Downloads |
---|---|
Darp.Utils.Configuration
Writable and immutable configuration service |
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
1.13.0 | 280 | 2 months ago |
1.12.3 | 388 | 4 months ago |
1.12.2 | 142 | 4 months ago |
1.12.1 | 110 | 5 months ago |
1.12.0 | 96 | 5 months ago |
1.11.4 | 103 | 5 months ago |
1.11.3 | 99 | 5 months ago |
1.11.2 | 94 | 5 months ago |
1.11.1 | 103 | 5 months ago |
1.11.0 | 100 | 5 months ago |
1.10.0 | 189 | 6 months ago |
1.9.2 | 168 | 6 months ago |
1.9.1 | 144 | 6 months ago |
1.9.0 | 121 | 7 months ago |
1.8.0 | 124 | 7 months ago |
1.7.4 | 118 | 7 months ago |
1.7.3 | 110 | 7 months ago |
1.7.2 | 118 | 7 months ago |
1.7.1 | 111 | 7 months ago |
1.7.0 | 111 | 7 months ago |
1.6.3 | 230 | 8 months ago |
1.6.2 | 147 | 8 months ago |
1.6.1 | 135 | 8 months ago |
1.6.0 | 138 | 8 months ago |
1.5.1 | 127 | 8 months ago |
1.5.0 | 125 | 8 months ago |
1.4.0 | 185 | 9 months ago |
1.3.0 | 142 | 9 months ago |
1.2.1 | 142 | 9 months ago |
1.2.0 | 130 | 9 months ago |
1.1.0 | 140 | 9 months ago |
1.0.1 | 139 | 9 months ago |
1.0.0 | 147 | 9 months ago |