Skip to content

NetWasm.UI 0.12.0

Choose a tag to compare

@github-actions github-actions released this 17 Nov 09:06
· 59 commits to main since this release

Added

  • NwUi.AspNetCore: hosts a NetWasm.UI app in ASP.NET Core on the same origin as your API.
    app.MapNetWasmUI() serves the client with the right MIME types and the prerendered page for
    each route; app.UseNetWasmUIDevServer() adds live reload and the error overlay in
    development (rebuilds use O0 and reuse the startup prerender, about 5 s; turn that off with
    NetWasmUIReusePrerender=false); setting
    NetWasmUIClientProject publishes the client into the server on build
    and publish. See ASP.NET Core
    and the new samples/Hosted.
  • Template: dotnet new netwasm-ui-hosted creates a client, an ASP.NET Core server and a
    shared library (Home, Counter and Weather, prerendering, live reload). Needs .NET 11.

Changed

  • Live reload also reloads the page when the connection to the dev server comes back, for
    example after dotnet watch restarts the server.