AspireFileDisplayExtension 134.2026.828.1615
dotnet add package AspireFileDisplayExtension --version 134.2026.828.1615
NuGet\Install-Package AspireFileDisplayExtension -Version 134.2026.828.1615
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="AspireFileDisplayExtension" Version="134.2026.828.1615" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="AspireFileDisplayExtension" Version="134.2026.828.1615" />
<PackageReference Include="AspireFileDisplayExtension" />
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 AspireFileDisplayExtension --version 134.2026.828.1615
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: AspireFileDisplayExtension, 134.2026.828.1615"
#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 AspireFileDisplayExtension@134.2026.828.1615
#: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=AspireFileDisplayExtension&version=134.2026.828.1615
#tool nuget:?package=AspireFileDisplayExtension&version=134.2026.828.1615
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
AspireFileDisplayExtension
An Aspire extension that hosts a small file viewer for your distributed application. Add files to the viewer, and it serves a browser UI with syntax highlighting for supported file types.
What it does
- Registers a single Aspire resource for displaying files
- Serves a web UI on a fixed port you choose
- Renders individual files at
/files/{name} - Supports Monaco-based syntax highlighting for many common extensions
- Serves embedded assets from
/vs
Requirements
- .NET 10.0 or later
- Aspire 13.4 or later
Installation
dotnet add package AspireFileDisplayExtension
Usage
using AspireFileDisplayExtension;
var builder = DistributedApplication.CreateBuilder(args);
var files = builder.CreateFileDisplay(port: 55987);
files.AddFile(relativePath: "AppHost.cs", lines: ["CreateFileDisplay"]);
files.AddFile(relativePath: "..\\README.md");
builder.Build().Run();
Open the configured port in a browser to see the file display UI. Each added file is available under /files/{file-name}.
Notes
AddFilevalidates the file extension against the built-in Monaco language map- If you pass
lines, the UI marks matching lines in the file view - The viewer is designed for local development and dashboard-style inspection
Repository
| Product | Versions 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.
-
net10.0
- Aspire.Hosting (>= 13.4.6)
- Microsoft.AspNetCore.OpenApi (>= 10.0.11)
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 |
|---|---|---|
| 134.2026.828.1615 | 64 | 8/28/2026 |
| 134.2026.816.1615 | 95 | 8/17/2026 |