Aiursoft.WebTools 10.0.8

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

Aiursoft WebTools

MIT licensed Pipeline stat Test Coverage NuGet version (Aiursoft.WebTools) Man hours

A collection of tools for web development.

How to install

To install Aiursoft.WebTools to your project from nuget.org:

dotnet add package Aiursoft.WebTools

Features

  • Easier application startup
  • QRCode generation
  • HttpContext extensions

Easier application startup

It is a common practice to create a Program class and a Startup class in a ASP.NET Core application. However, it is a little bit annoying to write the same code again and again. So we created a Extends class to help you to write less code.

using System.Reflection;
using Aiursoft.WebTools.Models;

namespace DemoApp;

public class Program
{
    public static async Task Main(string[] args)
    {
        var app = Extends.App<Startup>(args);
        await app.RunAsync();
    }
}

public class Startup : IWebStartup
{
    public void ConfigureServices(IConfiguration configuration, IWebHostEnvironment environment, IServiceCollection services)
    {
        services
            .AddControllers()
            .AddApplicationPart(Assembly.GetExecutingAssembly());
    }

    public void Configure(WebApplication app)
    {
        app.UseRouting();
        app.MapDefaultControllerRoute();
    }
}

QRCode generation

We provide a QRCode generation service for you to generate QRCode image from a string.

var base64 = _qrCodeService.ToQRCodeBase64(somestring);

HttpContext extensions

We provide some useful extensions for HttpContext:

var isWeChat = HttpContext.IsWeChat();
var isMobile = HttpContext.IsMobileBrowser();
var allowTrack = HttpContext.AllowTrack();

How to contribute

There are many ways to contribute to the project: logging bugs, submitting pull requests, reporting issues, and creating suggestions.

Even if you with push rights on the repository, you should create a personal fork and create feature branches there when you need them. This keeps the main repository clean and your workflow cruft out of sight.

We're also interested in your feedback on the future of this project. You can submit a suggestion or feature request through the issue tracker. To make this process more effective, we're asking that these include more information to help define them more clearly.

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  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 (2)

Showing the top 2 NuGet packages that depend on Aiursoft.WebTools:

Package Downloads
Aiursoft.AiurEventSyncer.WebExtends

Nuget package of 'WebExtends' provided by Aiursoft

Aiursoft.UiStack

Nuget package of 'UiStack' provided by Aiurosft

GitHub repositories (2)

Showing the top 2 popular GitHub repositories that depend on Aiursoft.WebTools:

Repository Stars
AiursoftWeb/Kahla
Kahla is a cross-platform business messaging app. Mirror of https://gitlab.aiursoft.com/aiursoft/kahla
AiursoftWeb/Infrastructures
Mirror of: https://gitlab.aiursoft.com/aiursoft/infrastructures
Version Downloads Last Updated
10.0.8 159 1/28/2026
10.0.7 421 1/18/2026
10.0.6 188 1/11/2026
10.0.4 243 12/31/2025
10.0.3 204 12/26/2025
10.0.2 262 11/29/2025
10.0.1 212 11/15/2025
9.0.10 238 11/6/2025
9.0.9 337 9/8/2025
9.0.8 198 9/7/2025
9.0.7 247 9/5/2025
9.0.6 212 9/5/2025
9.0.5 212 9/4/2025
9.0.4 340 7/15/2025
9.0.3 394 3/31/2025
9.0.2 364 2/23/2025
9.0.1 338 2/1/2025
9.0.0 284 12/29/2024
8.0.31 277 12/8/2024
8.0.30 196 12/5/2024
8.0.29 200 12/5/2024
8.0.28 393 11/11/2024
8.0.27 303 10/21/2024
8.0.26 212 10/21/2024
8.0.25 198 10/21/2024
8.0.24 185 10/21/2024
8.0.23 327 9/13/2024
8.0.22 479 7/7/2024
8.0.21 242 6/29/2024
8.0.20 588 3/27/2024
8.0.19 214 3/26/2024
8.0.18 298 3/24/2024
8.0.17 277 3/20/2024
8.0.16 249 3/17/2024
8.0.15 230 3/17/2024
8.0.14 237 3/17/2024
8.0.13 258 3/17/2024
8.0.12 289 3/16/2024
8.0.11 257 3/16/2024
8.0.10 255 3/16/2024
8.0.9 221 3/15/2024
8.0.8 226 3/14/2024
8.0.7 249 3/14/2024
8.0.6 275 3/13/2024
8.0.5 256 3/13/2024
8.0.4 254 3/13/2024
8.0.2 312 2/28/2024
8.0.1 326 2/21/2024
8.0.0 743 2/19/2024
7.0.35 578 2/4/2024
7.0.34 297 2/2/2024
7.0.33 402 2/2/2024
7.0.32 315 1/30/2024
7.0.31 492 1/18/2024
7.0.30 220 1/18/2024
7.0.29 362 1/11/2024
7.0.28 466 1/5/2024
7.0.27 352 1/5/2024
7.0.26 278 1/5/2024
7.0.25 333 1/4/2024
7.0.24 1,087 1/4/2024
7.0.23 256 1/4/2024
7.0.22 490 12/26/2023
7.0.21 225 12/26/2023
7.0.20 343 12/24/2023
7.0.19 356 12/22/2023
7.0.18 222 12/22/2023
7.0.17 229 12/21/2023
7.0.16 414 12/12/2023
7.0.15 464 12/11/2023
7.0.14 234 12/11/2023
7.0.13 255 12/10/2023
7.0.12 224 12/10/2023
7.0.11 276 12/1/2023
7.0.10 413 11/26/2023
7.0.9 488 11/12/2023
7.0.8 354 11/2/2023
7.0.7 225 11/2/2023
7.0.6 296 10/31/2023
7.0.5 448 10/15/2023
7.0.4 516 9/18/2023
7.0.3 401 9/12/2023
7.0.2 342 9/5/2023
7.0.1 249 9/5/2023
7.0.0 240 9/5/2023
6.0.25 406 7/13/2023
6.0.24 605 6/26/2023
6.0.23 327 6/26/2023
6.0.22 437 6/18/2023
6.0.21 408 6/14/2023
6.0.20 398 6/5/2023
6.0.19 414 5/27/2023
6.0.18 390 5/27/2023
6.0.17 393 5/27/2023
6.0.16 403 5/27/2023
6.0.15 403 5/27/2023
6.0.14 379 5/27/2023
6.0.13 387 5/19/2023
6.0.12 379 5/19/2023
6.0.11 392 5/19/2023
6.0.10 381 5/19/2023
6.0.9 408 5/19/2023
6.0.8 427 5/11/2023
6.0.7 2,515 8/4/2022
6.0.6 1,061 7/6/2022
6.0.5 1,309 5/13/2022
6.0.0 1,184 3/27/2022
5.0.9 1,202 5/31/2021
5.0.8 1,049 5/23/2021
5.0.7 1,054 5/7/2021
5.0.6 1,095 4/14/2021
5.0.5 1,150 2/16/2021
5.0.4 1,084 1/29/2021
5.0.3 1,076 1/27/2021
5.0.2 1,197 12/9/2020
5.0.1 1,102 11/30/2020
5.0.0 1,005 11/14/2020
3.2.11 1,292 10/18/2020
3.2.10 1,144 10/3/2020
3.2.9 1,126 10/2/2020
3.2.8 1,173 9/10/2020
3.2.7 1,184 9/2/2020
3.2.6 1,261 8/12/2020
3.2.5 1,235 7/31/2020
3.2.4 1,240 7/3/2020
3.2.3 1,228 6/25/2020
3.2.2 1,238 6/18/2020
3.2.1 1,280 6/5/2020
3.2.0 1,221 6/4/2020
3.1.14 1,408 6/4/2020
3.1.13 1,397 5/25/2020
3.1.12 1,316 5/20/2020
3.1.11 1,300 5/18/2020
3.1.10 1,319 5/18/2020
3.1.9 1,269 5/17/2020
3.1.8 1,264 5/12/2020
3.1.7 1,305 5/2/2020
3.1.6 1,391 5/1/2020
3.1.5 1,343 4/21/2020
3.1.4 1,024 4/19/2020
3.1.3 1,039 4/15/2020
3.1.2.2 1,979 4/6/2020
3.1.2.1 1,838 3/19/2020
3.1.2 840 3/13/2020
0.0.1 309 6/26/2023