Skip to content

0.2.0-beta.1

Pre-release
Pre-release
Compare
Choose a tag to compare
@jonathanpeppers jonathanpeppers released this 02 Jun 15:43
· 51 commits to main since this release
9ff35f8

What's New?

I've migrated some of the source code from BlazorWebView from .NET MAUI to Spice 🌶, making it available as a new control:

public class App : Application
{
    public App()
    {
        Main = new BlazorWebView
        {
            HostPage = "wwwroot/index.html",
            RootComponents =
            {
                new RootComponent { Selector = "#app", ComponentType = typeof(Main) }
            },
        };
    }
}

From here, you can write Index.razor as the Blazor you know and love:

@page "/"

<h1>Hello, world!</h1>

Welcome to your new app.

To arrive at Blazor web content inside iOS/Android apps:

Screenshot of Blazor app on iOS

Getting Started

Simply install the template:

dotnet new install Spice.Templates

Create either a plain Spice project, or a hybrid "Spice+Blazor" project:

dotnet new spice
# Or if you want hybrid/web support
dotnet new spice-blazor

Or use the project template from Visual Studio:

Screenshot of the Spice project template in Visual Studio

What's Changed

New Contributors

Full Changelog: 0.1.0-alpha.2...0.2.0-beta.1