Skip to content

Releases: jonathanpeppers/spice

0.2.0-beta.1

02 Jun 15:43
9ff35f8
Compare
Choose a tag to compare
0.2.0-beta.1 Pre-release
Pre-release

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

0.1.0-alpha.2

03 Feb 17:36
43997c6
Compare
Choose a tag to compare
0.1.0-alpha.2 Pre-release
Pre-release

Initial release!

Getting Started

Simply install the template:

dotnet new install Spice.Templates

Create the project and build it as you would for other .NET MAUI
projects:

dotnet new spice
dotnet build
# To run on Android
dotnet build -f net7.0-android -t:Run
# To run on iOS
dotnet build -f net7.0-ios -t:Run

Of course, you can also just open the project in Visual Studio and hit F5.

On NuGet at: