Kiyote.Files.Resource 0.4.3

dotnet add package Kiyote.Files.Resource --version 0.4.3
                    
NuGet\Install-Package Kiyote.Files.Resource -Version 0.4.3
                    
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="Kiyote.Files.Resource" Version="0.4.3" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Kiyote.Files.Resource" Version="0.4.3" />
                    
Directory.Packages.props
<PackageReference Include="Kiyote.Files.Resource" />
                    
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 Kiyote.Files.Resource --version 0.4.3
                    
#r "nuget: Kiyote.Files.Resource, 0.4.3"
                    
#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 Kiyote.Files.Resource@0.4.3
                    
#: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=Kiyote.Files.Resource&version=0.4.3
                    
Install as a Cake Addin
#tool nuget:?package=Kiyote.Files.Resource&version=0.4.3
                    
Install as a Cake Tool

Kiyote.Files.Resource

Overview

Provides a read-only file system around embedded resource files. This allows embedded files to be used in a structured way, similar to how files are used on disk from Kiyote.Files.Disk.

Getting Started

Structured file system

To have a structured file system that matches the structure of the embedded resources, the resource assembly must reference the nuget package Microsoft.Extensions.FileProviders.Embedded in the csproj file, as well as specify <GenerateEmbeddedFilesManifest>true</GenerateEmbeddedFilesManifest>.

For example:

<Project Sdk="Microsoft.NET.Sdk">

  <PropertyGroup>
    <GenerateEmbeddedFilesManifest>true</GenerateEmbeddedFilesManifest>
  </PropertyGroup>

  <ItemGroup>
    <PackageReference Include="Microsoft.Extensions.FileProviders.Embedded" />
  <ItemGroup>

  <ItemGroup>
    <EmbeddedResource Include="ResourceFolder\SubFolder\subfolder.txt" />
    <EmbeddedResource Include="root.txt" />
  </ItemGroup>

...

Unstructured file system

Without this embedded manifest, the resources will appear as a flat structure in the "root folder" of the file system. The name of the files in that case will be:

{Folder}.{SubFolder}.{File Name}

From the above example:

ResourceFolder.SubFolder.subfolder.txt
root.txt
Product 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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
0.4.3 93 8/13/2026
0.4.2 90 8/11/2026
0.4.1 110 4/14/2026
0.4.0 124 2/8/2026
0.3.0 277 12/15/2025
0.2.0 196 10/7/2025
0.1.4 177 10/25/2024
0.1.3 164 10/23/2024
0.1.2 188 6/3/2024