SyminStudio.TauriApi 0.4.8

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

Warning: If you are using structured data as return type from rust, make sure that the data is serialized into camel case format, or received as snake case format.

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 is compatible.  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.8 0 8/10/2025
0.4.7 130 8/8/2025
0.4.6 134 8/8/2025
0.4.5 131 8/8/2025
0.4.4 185 5/5/2025
0.4.3 106 5/2/2025
0.4.2 154 4/28/2025
0.4.1 81 4/26/2025
0.4.0 165 4/23/2025
0.3.0 157 4/8/2025
0.2.2 144 3/28/2025
0.2.1 168 4/19/2024
0.0.4 152 3/6/2024
0.0.3 140 3/6/2024
0.0.2 149 3/6/2024
0.0.1 252 10/29/2022

Add Webview Window Constructor.