SyminStudio.TauriApi 0.4.4

dotnet add package SyminStudio.TauriApi --version 0.4.4
                    
NuGet\Install-Package SyminStudio.TauriApi -Version 0.4.4
                    
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="SyminStudio.TauriApi" Version="0.4.4" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="SyminStudio.TauriApi" Version="0.4.4" />
                    
Directory.Packages.props
<PackageReference Include="SyminStudio.TauriApi" />
                    
Project file
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 SyminStudio.TauriApi --version 0.4.4
                    
#r "nuget: SyminStudio.TauriApi, 0.4.4"
                    
#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.
#addin nuget:?package=SyminStudio.TauriApi&version=0.4.4
                    
Install SyminStudio.TauriApi as a Cake Addin
#tool nuget:?package=SyminStudio.TauriApi&version=0.4.4
                    
Install SyminStudio.TauriApi as a Cake Tool

Tauri + Blazor

This template should help get you started developing with Tauri in Blazor, C#, CSS and Javascript.

Getting Started

  1. run dotnet watch in the tauri-blazor-demo/src/ directory to start the frontend.
  2. run cargo tauri dev in the tauri-blazor-demo/src-tauri/ directory to start the application in development mode.

How To Use

  1. Add nuget package to your project.
dotnet add package SyminStudio.TauriApi --version 0.4.4
  1. Add following contents to your Program.cs file.
using TauriApi;
using TauriApi.Plugins;
// ...
builder.Services.AddTauriApi();
builder.Services.AddTauriPlugin<TauriOpener>();
// ...
  1. Add global using to the _Imports.razor file.
@using TauriApi
@using TauriApi.Plugins
  1. Now you can inject and use api in your components.
@inject Tauri Tauri
@inject TauriOpener Opener
<YourComponents/>
@code{
    private string? GreetInput { get; set; }
    private string? GreetMsg { get; set; }

    private async Task GreetAsync()
    {
        GreetMsg = await Tauri.Core.Invoke<string>("greet", new { name = GreetInput });
        await Opener.OpenPath("https://demosite")
    }
}

Supported APIs

The module @tauri-apps/api/{moduleName} is mapped to Tauri.{ModuleName} property. The constructor of the class is mapped to Tauri.{ModuleName}.Create{ClassName}() method. The plugins are mapped to Tauri{PluginName} class.

  • api/app
  • api/core
  • api/event
  • api/image
  • api/path
  • api/window (partial)
  • plugin/fs (wip)
  • plugin/opener

Warning

This package is not yet ready for production. It is a work in progress and should not be used in production applications. It is intended for development and testing purposes only. Use at your own risk. This package only supports Tauri 2.0 since version 0.3.0.

Product Compatible and additional computed target framework versions.
.NET net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
0.4.4 140 5/5/2025
0.4.3 86 5/2/2025
0.4.2 141 4/28/2025
0.4.1 67 4/26/2025
0.4.0 148 4/23/2025
0.3.0 142 4/8/2025
0.2.2 127 3/28/2025
0.2.1 158 4/19/2024
0.0.4 146 3/6/2024
0.0.3 133 3/6/2024
0.0.2 143 3/6/2024
0.0.1 225 10/29/2022

Add Path and Opener plugin.