Oakrey.Applications.FileBrowsing.Extended
7.0.0
dotnet add package Oakrey.Applications.FileBrowsing.Extended --version 7.0.0
NuGet\Install-Package Oakrey.Applications.FileBrowsing.Extended -Version 7.0.0
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="Oakrey.Applications.FileBrowsing.Extended" Version="7.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Oakrey.Applications.FileBrowsing.Extended" Version="7.0.0" />
<PackageReference Include="Oakrey.Applications.FileBrowsing.Extended" />
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 Oakrey.Applications.FileBrowsing.Extended --version 7.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Oakrey.Applications.FileBrowsing.Extended, 7.0.0"
#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 Oakrey.Applications.FileBrowsing.Extended@7.0.0
#: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=Oakrey.Applications.FileBrowsing.Extended&version=7.0.0
#tool nuget:?package=Oakrey.Applications.FileBrowsing.Extended&version=7.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Oakrey.Applications.FileBrowsing.Extended
File creation, deletion, shell editing, and Explorer integration for
Oakrey.Applications.FileBrowsing.
Features
- Creates files from a configured template.
- Uses atomic
FileMode.CreateNewsemantics and never overwrites an existing file. - Removes incomplete files when creation fails or is cancelled.
- Confirms deletion through
IUserPrompter. - Opens a selected file with its registered Windows application.
- Reveals a selected file with the Windows system
explorer.exe. - Reloads the file list while preserving or changing selection.
- Logs failures with format placeholders and exception arguments.
Dependencies
Oakrey.Applications.FileBrowsing7.0.0Oakrey.Applications.UserPrompts.Abstractions
Installation
dotnet add package Oakrey.Applications.FileBrowsing.Extended
Registration
services.AddSingleton<IFileExtendedBrowsingServiceSettings, JsonBrowsingSettings>();
services.AddSingleton<IExtendedFileBrowsingService, ExtendedFileBrowsingService>();
Usage
await browser.CreateNewFile("report.json", cancellationToken);
await browser.EditSelectedFile(cancellationToken);
await browser.OpenFolder(cancellationToken);
await browser.DeleteSelectedFile(cancellationToken);
Safety notes
- New-file names must be simple file names; rooted paths, separators, traversal, invalid characters, and trailing spaces or periods are rejected.
- Create operations cannot overwrite existing files, including during a race.
- Delete and shell operations accept only an existing, non-reparse-point file from the current browsing folder and current available-file list.
- Cancellation is propagated as
OperationCanceledException, not converted into an error prompt. - User prompts contain generic error text; detailed exceptions remain in application logs.
License
MIT. Copyright (c) Oakrey 2016-present.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0-windows7.0 is compatible. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net10.0-windows7.0
- Oakrey.Applications.FileBrowsing (>= 7.0.0)
- Oakrey.Applications.UserPrompts (>= 7.0.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.