Darp.Utils.ResxSourceGenerator
1.7.4
See the version list below for details.
dotnet add package Darp.Utils.ResxSourceGenerator --version 1.7.4
NuGet\Install-Package Darp.Utils.ResxSourceGenerator -Version 1.7.4
<PackageReference Include="Darp.Utils.ResxSourceGenerator" Version="1.7.4" />
<PackageVersion Include="Darp.Utils.ResxSourceGenerator" Version="1.7.4" />
<PackageReference Include="Darp.Utils.ResxSourceGenerator" />
paket add Darp.Utils.ResxSourceGenerator --version 1.7.4
#r "nuget: Darp.Utils.ResxSourceGenerator, 1.7.4"
#:package Darp.Utils.ResxSourceGenerator@1.7.4
#addin nuget:?package=Darp.Utils.ResxSourceGenerator&version=1.7.4
#tool nuget:?package=Darp.Utils.ResxSourceGenerator&version=1.7.4
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>();
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.
Usage
YourProject.csproj
<Project>
<PropertyGroup>
<SkipShowResxFilesInHierarchy>false</SkipShowResxFilesInHierarchy>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Darp.Utils.ResxSourceGenerator" Version="X.Y.Z" PrivateAssets="all"/>
</ItemGroup>
<ItemGroup>
<AdditionalFiles Include="Localization\Resources1.resx"/>
<AdditionalFiles Include="Localization\Resources2.resx"
GenerateSource="true"
RelativeDir=""
ClassName=""
EmitFormatMethods="false"
EmitObserveMethods="false"
Public="false"/>
</ItemGroup>
</Project>
Learn more about Target Frameworks and .NET Standard.
-
.NETStandard 2.0
- Microsoft.CodeAnalysis.CSharp (>= 4.0.1)
- Microsoft.CodeAnalysis.CSharp.Workspaces (>= 4.0.1)
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.19.2 | 202 | 10/24/2025 |
| 1.19.1 | 285 | 7/28/2025 |
| 1.19.0 | 151 | 7/27/2025 |
| 1.18.2 | 184 | 7/10/2025 |
| 1.18.1 | 226 | 7/7/2025 |
| 1.18.0 | 209 | 6/29/2025 |
| 1.17.4 | 128 | 6/28/2025 |
| 1.17.3 | 326 | 6/13/2025 |
| 1.17.2 | 311 | 6/12/2025 |
| 1.17.1 | 323 | 6/12/2025 |
| 1.17.0 | 228 | 6/8/2025 |
| 1.16.1 | 173 | 6/3/2025 |
| 1.16.0 | 127 | 5/24/2025 |
| 1.15.0 | 105 | 5/24/2025 |
| 1.14.3 | 244 | 5/22/2025 |
| 1.14.2 | 208 | 5/22/2025 |
| 1.14.1 | 193 | 5/20/2025 |
| 1.14.0 | 183 | 5/20/2025 |
| 1.13.2 | 179 | 5/19/2025 |
| 1.13.1 | 175 | 5/19/2025 |
| 1.13.0 | 252 | 3/5/2025 |
| 1.12.3 | 158 | 12/17/2024 |
| 1.12.2 | 169 | 12/12/2024 |
| 1.12.1 | 132 | 12/11/2024 |
| 1.12.0 | 124 | 12/11/2024 |
| 1.11.4 | 125 | 12/10/2024 |
| 1.11.3 | 127 | 12/10/2024 |
| 1.11.2 | 120 | 12/10/2024 |
| 1.11.1 | 133 | 12/9/2024 |
| 1.11.0 | 127 | 12/9/2024 |
| 1.10.0 | 138 | 10/21/2024 |
| 1.9.2 | 166 | 10/19/2024 |
| 1.9.1 | 174 | 10/19/2024 |
| 1.9.0 | 148 | 9/30/2024 |
| 1.8.0 | 190 | 9/26/2024 |
| 1.7.4 | 144 | 9/23/2024 |
| 1.7.3 | 163 | 9/22/2024 |
| 1.7.2 | 146 | 9/22/2024 |
| 1.7.1 | 153 | 9/22/2024 |
| 1.7.0 | 149 | 9/22/2024 |