H.Resources.Generator
1.1.13
See the version list below for details.
dotnet add package H.Resources.Generator --version 1.1.13
NuGet\Install-Package H.Resources.Generator -Version 1.1.13
<PackageReference Include="H.Resources.Generator" Version="1.1.13"> <PrivateAssets>all</PrivateAssets> <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets> </PackageReference>
paket add H.Resources.Generator --version 1.1.13
#r "nuget: H.Resources.Generator, 1.1.13"
// Install H.Resources.Generator as a Cake Addin #addin nuget:?package=H.Resources.Generator&version=1.1.13 // Install H.Resources.Generator as a Cake Tool #tool nuget:?package=H.Resources.Generator&version=1.1.13
H.Resources.Generator
Description
Nuget
Install-Package H.Resources.Generator
Usage
<ItemGroup Label="Images">
<EmbeddedResource Include="Images\*.png" />
<AdditionalFiles Include="Images\*.png" /> // It creates System.Drawing.Image properties
</ItemGroup>
After it, use resource in code:
var image = H.Resources.ImageName;
You can set up type explicitly:
<AdditionalFiles Include="Images\*.png" HResourcesGenerator_Type="Bytes" /> // It creates byte[] properties
Supported types:
- Image(System.Drawing.Image)
- Stream(System.IO.Stream)
- String(string)
- Bytes(byte[])
Global options(Default values are provided and can be omitted):
<PropertyGroup>
<HResourcesGenerator_Namespace>H</HResourcesGenerator_Namespace>
<HResourcesGenerator_Modifier>internal</HResourcesGenerator_Modifier>
<HResourcesGenerator_ClassName>Resources</HResourcesGenerator_ClassName>
<HResourcesGenerator_AddResourcesFolder>true</HResourcesGenerator_AddResourcesFolder>
<HResourcesGenerator_AutoDetect>true</HResourcesGenerator_AutoDetect>
</PropertyGroup>
By default, it includes this code:
<ItemGroup Condition="$(HResourcesGenerator_AddResourcesFolder)">
<EmbeddedResource Include="Resources\**\*.*" />
<AdditionalFiles Include="Resources\**\*.*" />
</ItemGroup>
You can disable this behavior with <HResourcesGenerator_AddResourcesFolder>false</HResourcesGenerator_AddResourcesFolder>
Contacts
Learn more about Target Frameworks and .NET Standard.
-
.NETStandard 2.0
- No dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories (3)
Showing the top 3 popular GitHub repositories that depend on H.Resources.Generator:
Repository | Stars |
---|---|
tryAGI/LangChain
C# implementation of LangChain. We try to be as close to the original as possible in terms of abstractions, but are open to new entities.
|
|
HavenDV/H.NotifyIcon
TrayIcon for WPF/WinUI/Uno/MAUI
|
|
HavenDV/DependencyPropertyGenerator
Dependency property, routed event and weak event source generator for WPF/UWP/WinUI/Uno/Avalonia/MAUI platforms.
|
Version | Downloads | Last updated |
---|---|---|
1.6.1 | 7,150 | 9/7/2024 |
1.6.0 | 10,665 | 12/2/2023 |
1.5.1 | 2,507 | 5/8/2023 |
1.5.0 | 2,648 | 3/9/2023 |
1.4.0 | 1,685 | 11/1/2022 |
1.2.28 | 2,185 | 7/13/2022 |
1.2.27 | 725 | 5/18/2022 |
1.2.26 | 413 | 5/18/2022 |
1.2.25 | 419 | 5/18/2022 |
1.2.24 | 450 | 5/18/2022 |
1.2.22 | 699 | 3/22/2022 |
1.2.21 | 560 | 2/2/2022 |
1.2.20 | 724 | 10/19/2021 |
1.2.19 | 477 | 8/6/2021 |
1.2.18 | 365 | 7/13/2021 |
1.2.17 | 349 | 7/13/2021 |
1.2.16 | 323 | 7/13/2021 |
1.1.15 | 372 | 7/13/2021 |
1.1.14 | 336 | 7/13/2021 |
1.1.13 | 351 | 7/13/2021 |
1.1.12 | 345 | 7/10/2021 |
1.1.11 | 332 | 7/10/2021 |
1.1.9 | 320 | 7/9/2021 |
1.1.8 | 335 | 7/6/2021 |
1.1.7 | 398 | 6/14/2021 |
1.1.6 | 367 | 6/14/2021 |
1.1.5 | 320 | 6/12/2021 |
1.1.4 | 311 | 6/12/2021 |
1.1.3 | 316 | 6/12/2021 |
1.1.2 | 356 | 6/12/2021 |
1.1.1 | 340 | 6/12/2021 |
1.0.5 | 812 | 4/11/2021 |
1.0.4 | 809 | 4/10/2021 |
1.0.3 | 328 | 4/10/2021 |
1.0.2 | 323 | 4/10/2021 |
1.0.1 | 328 | 4/10/2021 |
1.0.0 | 414 | 4/10/2021 |
⭐ Last 10 features:
- feat: Added HResourcesGenerator_AutoDetect global property. 2021-07-13
- feat: Added extension to resource name. 2021-07-10
- feat: Added implicit Resources folder ItemGroup. 2021-07-06
- feat: Added String type. 2021-06-14
- feat: Added PackageReadmeFile. 2021-06-14
- feat: Added global options: Namespace, Modifier and ClassName. 2021-06-13
- feat: Added conditional use for System.Drawing code. 2021-06-13
- feat: Added System.IO.Stream support. 2021-06-13
- feat: Added auto releasing. 2021-06-13
- feat: Added support for files with whitespaces. 2021-06-13
🐞 Last 10 bug fixes:
- fix: Check new syntax. 2021-07-10
- fix: Fixed tests. 2021-07-10
- fix: Changed base rule to Resources\**\*.*. 2021-07-10
- fix: Fixed whitespaces. 2021-06-13
- fix: Fixed GetOption bug. 2021-06-13
- fix: Fixed explicit Type bug. 2021-06-13
- fix: Fixed paths with '-'. 2021-04-11
- fix: Fixed tests. 2021-04-11
- fix: Fixed nullable bug. 2021-04-10
- fix: Fixed using bug. 2021-04-10