Moka.Blazor.Repl
1.3.5
dotnet add package Moka.Blazor.Repl --version 1.3.5
NuGet\Install-Package Moka.Blazor.Repl -Version 1.3.5
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="Moka.Blazor.Repl" Version="1.3.5" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Moka.Blazor.Repl" Version="1.3.5" />
<PackageReference Include="Moka.Blazor.Repl" />
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 Moka.Blazor.Repl --version 1.3.5
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Moka.Blazor.Repl, 1.3.5"
#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 Moka.Blazor.Repl@1.3.5
#: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=Moka.Blazor.Repl&version=1.3.5
#tool nuget:?package=Moka.Blazor.Repl&version=1.3.5
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Moka.Blazor.Repl
A Blazor Razor Class Library that provides an in-browser C# REPL (Read-Eval-Print Loop) with Roslyn compilation, Monaco editor integration, NuGet package support, and live preview.
Features
- Monaco editor - full C# editing experience with IntelliSense
- Roslyn compilation - compile and run C#/Razor code in the browser
- NuGet support - add NuGet packages at runtime
- Live preview - instant Blazor component preview via WebAssembly
- File explorer - multi-file project support
- Template picker - start from pre-built project templates
- Diagnostics panel - real-time compiler errors and warnings
- Keyboard shortcuts - productivity shortcuts overlay
- Plugin system - extensible via IReplPlugin
- Multi-target - .NET 9 and .NET 10
Quick Start
Register services in Program.cs:
builder.Services.AddMokaBlazorRepl();
Add the workspace component:
@using Moka.Blazor.Repl.Components
<ReplWorkspace />
Related Packages
| Package | Description |
|---|---|
| Moka.Blazor.Repl | Core workspace UI and orchestration |
| Moka.Blazor.Repl.Abstractions | Interfaces and models |
| Moka.Blazor.Repl.Monaco | Monaco editor integration |
| Moka.Blazor.Repl.Compilation | Roslyn compilation engine |
| Moka.Blazor.Repl.Embed | Lightweight embeddable viewer |
License
MIT
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | 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 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
- Moka.Blazor.Repl.Abstractions (>= 1.3.5)
- Moka.Blazor.Repl.Compiler (>= 1.3.5)
- Moka.Blazor.Repl.Editor (>= 1.3.5)
- Moka.Red (>= 0.1.3)
-
net9.0
- Moka.Blazor.Repl.Abstractions (>= 1.3.5)
- Moka.Blazor.Repl.Compiler (>= 1.3.5)
- Moka.Blazor.Repl.Editor (>= 1.3.5)
- Moka.Red (>= 0.1.3)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.