RazorConsole.Core
0.0.2-alpha.181b79
See the version list below for details.
dotnet add package RazorConsole.Core --version 0.0.2-alpha.181b79
NuGet\Install-Package RazorConsole.Core -Version 0.0.2-alpha.181b79
<PackageReference Include="RazorConsole.Core" Version="0.0.2-alpha.181b79" />
<PackageVersion Include="RazorConsole.Core" Version="0.0.2-alpha.181b79" />
<PackageReference Include="RazorConsole.Core" />
paket add RazorConsole.Core --version 0.0.2-alpha.181b79
#r "nuget: RazorConsole.Core, 0.0.2-alpha.181b79"
#:package RazorConsole.Core@0.0.2-alpha.181b79
#addin nuget:?package=RazorConsole.Core&version=0.0.2-alpha.181b79&prerelease
#tool nuget:?package=RazorConsole.Core&version=0.0.2-alpha.181b79&prerelease
<div align="center">
RazorConsole
Build interactive console applications with .NET Razor components.
Install
dotnet add package RazorConsole.Core
Usage
// Counter.razor
@using Microsoft.AspNetCore.Components
@using Microsoft.AspNetCore.Components.Web
@using RazorConsole.Components
<Columns>
<p>Current count</p>
<Markup Content="@currentCount.ToString()" Foreground="@Spectre.Console.Color.Green" />
</Columns>
<TextButton Content="Click me"
OnClick="IncrementCount"
BackgroundColor="@Spectre.Console.Color.Grey"
FocusedColor="@Spectre.Console.Color.Blue" />
@code {
private int currentCount = 0;
private void IncrementCount()
{
currentCount++;
}
}
// Program.cs
await AppHost.RunAsync<Counter>();
Component Gallery
Explore the built-in components interactively with the RazorConsole Component Gallery. Install the tool globally and launch it from any terminal:
dotnet tool install --global RazorConsole.Gallery --version 0.0.1
After installation, run razorconsole-gallery to open the showcase and browse component examples rendered in the console. The gallery includes quick links back to this README for more details.
Community & support
- File issues using the GitHub Issues tab.
License
This project is distributed under the MIT License. See LICENSE for details.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 is compatible. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. 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. |
-
net8.0
- Microsoft.AspNetCore.Components (>= 8.0.0)
- Microsoft.AspNetCore.Components.Web (>= 8.0.0)
- Microsoft.Extensions.DependencyInjection (>= 8.0.0)
- Microsoft.Extensions.Logging (>= 8.0.0)
- Microsoft.Extensions.Logging.Abstractions (>= 8.0.0)
- Microsoft.Extensions.Logging.Console (>= 8.0.0)
- Spectre.Console (>= 0.51.1)
- System.Composition (>= 8.0.0)
-
net9.0
- Microsoft.AspNetCore.Components (>= 8.0.0)
- Microsoft.AspNetCore.Components.Web (>= 8.0.0)
- Microsoft.Extensions.DependencyInjection (>= 8.0.0)
- Microsoft.Extensions.Logging (>= 8.0.0)
- Microsoft.Extensions.Logging.Abstractions (>= 8.0.0)
- Microsoft.Extensions.Logging.Console (>= 8.0.0)
- Spectre.Console (>= 0.51.1)
- System.Composition (>= 8.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.