Darp.Utils.Assets 1.7.1

There is a newer version of this package available.
See the version list below for details.
dotnet add package Darp.Utils.Assets --version 1.7.1
                    
NuGet\Install-Package Darp.Utils.Assets -Version 1.7.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="Darp.Utils.Assets" Version="1.7.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Darp.Utils.Assets" Version="1.7.1" />
                    
Directory.Packages.props
<PackageReference Include="Darp.Utils.Assets" />
                    
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 Darp.Utils.Assets --version 1.7.1
                    
#r "nuget: Darp.Utils.Assets, 1.7.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 Darp.Utils.Assets@1.7.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=Darp.Utils.Assets&version=1.7.1
                    
Install as a Cake Addin
#tool nuget:?package=Darp.Utils.Assets&version=1.7.1
                    
Install as a Cake Tool

Darp.Utils

Test (and publish) License

This repository bundles all open source c# helper modules of 'rosslight GmbH'. To extend, add a new project and test project.

Darp.Utils.Assets

NuGet Downloads

A collection of simple interfaces for app assets targeting desktop apps.

Currently implemented:

  • AppDataAssetsService: Read or write to the ApplicationData. 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

NuGet Downloads

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

NuGet Downloads

A lightweight dialog service which allows for opening dialogs from the ViewModel.

Implementation Description
NuGet Implementation based on FluentAvalonia

Example:

ServiceProvider provider = new ServiceCollection()
    .AddSingleton<IDialogService, AvaloniaDialogService>()
    .BuildServiceProvider();

IDialogService dialogService = provider.GetRequiredService<IDialogService>();
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. Based on the microsoft.CodeAnalysis.ResxSourceGenerator.

Product 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.  net10.0 was computed.  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 (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.19.1 107 7/28/2025
1.19.0 96 7/27/2025
1.18.2 158 7/10/2025
1.18.1 190 7/7/2025
1.18.0 154 6/29/2025
1.17.4 111 6/28/2025
1.17.3 304 6/13/2025
1.17.2 299 6/12/2025
1.17.1 293 6/12/2025
1.17.0 205 6/8/2025
1.16.1 141 6/3/2025
1.16.0 103 5/24/2025
1.15.0 82 5/24/2025
1.14.3 213 5/22/2025
1.14.2 182 5/22/2025
1.14.1 176 5/20/2025
1.14.0 156 5/20/2025
1.13.2 159 5/19/2025
1.13.1 156 5/19/2025
1.13.0 317 3/5/2025
1.12.3 446 12/17/2024
1.12.2 159 12/12/2024
1.12.1 126 12/11/2024
1.12.0 110 12/11/2024
1.11.4 118 12/10/2024
1.11.3 118 12/10/2024
1.11.2 110 12/10/2024
1.11.1 121 12/9/2024
1.11.0 116 12/9/2024
1.10.0 205 10/21/2024
1.9.2 185 10/19/2024
1.9.1 163 10/19/2024
1.9.0 141 9/30/2024
1.8.0 142 9/26/2024
1.7.4 135 9/23/2024
1.7.3 128 9/22/2024
1.7.2 138 9/22/2024
1.7.1 130 9/22/2024
1.7.0 130 9/22/2024
1.6.3 248 9/10/2024
1.6.2 162 9/9/2024
1.6.1 151 9/9/2024
1.6.0 153 9/9/2024
1.5.1 143 9/7/2024
1.5.0 142 9/5/2024
1.4.0 199 8/11/2024
1.3.0 158 8/9/2024
1.2.1 157 8/9/2024
1.2.0 148 8/9/2024
1.1.0 156 8/8/2024
1.0.1 152 8/8/2024
1.0.0 163 8/8/2024