Skip to content

Add ASP.NET Core MVC template for Tauri applications #890

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 5 commits into
base: dev
Choose a base branch
from

Conversation

Taiizor
Copy link

@Taiizor Taiizor commented May 11, 2025

This PR adds a new ASP.NET Core MVC template for Tauri applications, similar to the existing Blazor template. This enables developers to create desktop applications with Tauri using ASP.NET Core MVC as the frontend framework.

Features

  • Proper configuration for development and production builds
  • Sample form implementation demonstrating Tauri API calls from MVC
  • Integration with Tauri's JavaScript API for frontend-backend communication
  • Complete ASP.NET Core MVC template structure following Tauri conventions

Why ASP.NET Core MVC?

While Blazor offers a modern component-based approach, many developers still prefer the MVC pattern for web applications. This template provides another option for .NET developers who want to leverage their existing MVC knowledge while building Tauri desktop applications.

Implementation Details

  • Created necessary configuration files (.manifest, .gitignore)
  • Implemented sample Tauri API interaction using JavaScript
  • Set up proper styling for consistent UI with other templates
  • Added template-aspnet directory with complete project structure
  • Ensured compatibility with Tauri's build and development workflow

Testing

The template has been tested with various project names and builds correctly in both development and production modes.

image

Taiizor added 5 commits May 11, 2025 05:47
Introduced a new ASP.NET template for project scaffolding, including necessary files and configurations. Updated the template matrix, README files, and package manager logic to support the new template. This addition enables developers to scaffold ASP.NET projects with Tauri integration.
Moved 'aspnet.svg' from '_assets_' to 'src/wwwroot/img' in the ASP.NET template and updated the .manifest file to reflect the new location. This improves the organization of template assets.
Updated appsettings.Development.json and appsettings.json to include Kestrel HTTP endpoint configuration with URL 'http://*:1420'. This change ensures consistent endpoint settings for the application.
The Privacy action method was removed from HomeController as it is no longer used. This helps to clean up the code and improve maintainability.
Deleted appsettings.Development.json and appsettings.json from the ASP.NET template. These files may have been removed to avoid hardcoding configuration or to centralize settings management.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant