BlazorHosted.Shared 1.0.0

The owner has unlisted this package. This could mean that the package is deprecated, has security vulnerabilities or shouldn't be used anymore.
dotnet add package BlazorHosted.Shared --version 1.0.0
                    
NuGet\Install-Package BlazorHosted.Shared -Version 1.0.0
                    
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="BlazorHosted.Shared" Version="1.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="BlazorHosted.Shared" Version="1.0.0" />
                    
Directory.Packages.props
<PackageReference Include="BlazorHosted.Shared" />
                    
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 BlazorHosted.Shared --version 1.0.0
                    
#r "nuget: BlazorHosted.Shared, 1.0.0"
                    
#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 BlazorHosted.Shared@1.0.0
                    
#: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=BlazorHosted.Shared&version=1.0.0
                    
Install as a Cake Addin
#tool nuget:?package=BlazorHosted.Shared&version=1.0.0
                    
Install as a Cake Tool

BlazorHosted .NET 9 Template

This is a custom template for creating a Blazor WebAssembly (WASM) App hosted with ASP.NET Core, using the latest features of .NET 9.

πŸ“¦ What’s Included

This template scaffolds a solution with the following projects:

  • Client: The Blazor WebAssembly frontend.
  • Server: The ASP.NET Core backend that serves the client app and hosts APIs.
  • Shared: A shared class library for common models and DTOs.

πŸš€ Getting Started

1. Install the Template

If not already installed, install the template globally:

dotnet new --install Blazorhosted.DevJojo

You can verify the installation using:

dotnet new --list | grep blazorhosted

2. Create a New Project

dotnet new blazorhosted -n MyApp
cd MyApp

This will scaffold:

MyApp/
β”œβ”€β”€ MyApp.Client/
β”œβ”€β”€ MyApp.Server/
β”œβ”€β”€ MyApp.Shared/
β”œβ”€β”€ MyApp.sln

3. Run the App

From the root folder:

dotnet build
dotnet run --project Server

The app will be available at https://localhost:<PORT_CONFIGURED>

4. Development Workflow

  • Modify Blazor components in Client/Pages.
  • Add API controllers or endpoints in Server/Controllers.
  • Share models or DTOs between client and server via the Shared project.

βš™οΈ Customization Tips

  • Use appsettings.Development.json for dev config.
  • Cookie Authentication has already been configured. All you need is your UI
  • Database related items can be found in Infrastracture/Persistence
  • Use dependency injection across all projects as needed

πŸ› οΈ Build & Publish

To publish the app:

dotnet publish Server -c Release -o ./publish

This bundles the Blazor client app and serves it from the ASP.NET Core backend.

πŸ“„ License

This template is open for personal or commercial use. Customize it freely.

Product Compatible and additional computed target framework versions.
.NET 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.
  • net9.0

    • No dependencies.

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