The Virtual File System makes it possible to manage files that do not exist on a physical file system (e.g. disk).
- The
VirtualFileSystemcan be extended by additionalIVirtualFileProviders. - Out-of-the-box,
Microsoft.Extensions.FileProviders.Composite,Microsoft.Extensions.FileProviders.EmbeddedandMicrosoft.Extensions.FileProviders.Physicalare integrated. - Virtual files can be used just like static files in an application.
- JavaScript, CSS, image files and all other file types can be embedded into assemblies and used just like the static files.
- An application (or library) can override an embedded file just by placing a static file with the same name and extension into the same folder of the virtual file system.
The library is a modified version of Volo.Abp.VirtualFileSystem 7.0 Modifications to the source code were made by axuno in 2020-23. Changes focused on:
- Decouple Volo.Abp.VirtualFileSystem from all dependencies of the Abp Framework
- Use Microsoft DependencyInjection instead of AutoFac
- Add a workaround, so that
VirtualFileProviderwill also find existing directories returned fromPhysicalFileProvider. This means, thatVirtualFileProviderbehaves the same, never mind whether files are retrieved usingEmbeddedFileProviderorPhysicalFileProvider. - Change of namespaces
Install the NuGet package
- Read the Virtual File System wiki
