Aiursoft.WebTools 9.0.3

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

Aiursoft WebTools

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

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 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 (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.cn/aiursoft/kahla
AiursoftWeb/Infrastructures
Mirror of: https://gitlab.aiursoft.cn/aiursoft/infrastructures
Version Downloads Last updated
9.0.3 242 3/31/2025
9.0.2 270 2/23/2025
9.0.1 226 2/1/2025
9.0.0 189 12/29/2024
8.0.31 169 12/8/2024
8.0.30 116 12/5/2024
8.0.29 102 12/5/2024
8.0.28 284 11/11/2024
8.0.27 195 10/21/2024
8.0.26 113 10/21/2024
8.0.25 113 10/21/2024
8.0.24 100 10/21/2024
8.0.23 226 9/13/2024
8.0.22 387 7/7/2024
8.0.21 143 6/29/2024
8.0.20 466 3/27/2024
8.0.19 116 3/26/2024
8.0.18 197 3/24/2024
8.0.17 174 3/20/2024
8.0.16 167 3/17/2024
8.0.15 134 3/17/2024
8.0.14 165 3/17/2024
8.0.13 159 3/17/2024
8.0.12 181 3/16/2024
8.0.11 142 3/16/2024
8.0.10 139 3/16/2024
8.0.9 140 3/15/2024
8.0.8 128 3/14/2024
8.0.7 136 3/14/2024
8.0.6 177 3/13/2024
8.0.5 151 3/13/2024
8.0.4 150 3/13/2024
8.0.2 216 2/28/2024
8.0.1 217 2/21/2024
8.0.0 655 2/19/2024
7.0.35 472 2/4/2024
7.0.34 217 2/2/2024
7.0.33 283 2/2/2024
7.0.32 213 1/30/2024
7.0.31 392 1/18/2024
7.0.30 123 1/18/2024
7.0.29 253 1/11/2024
7.0.28 375 1/5/2024
7.0.27 243 1/5/2024
7.0.26 165 1/5/2024
7.0.25 235 1/4/2024
7.0.24 980 1/4/2024
7.0.23 165 1/4/2024
7.0.22 383 12/26/2023
7.0.21 128 12/26/2023
7.0.20 264 12/24/2023
7.0.19 263 12/22/2023
7.0.18 137 12/22/2023
7.0.17 134 12/21/2023
7.0.16 320 12/12/2023
7.0.15 369 12/11/2023
7.0.14 140 12/11/2023
7.0.13 156 12/10/2023
7.0.12 132 12/10/2023
7.0.11 175 12/1/2023
7.0.10 333 11/26/2023
7.0.9 443 11/12/2023
7.0.8 265 11/2/2023
7.0.7 170 11/2/2023
7.0.6 231 10/31/2023
7.0.5 354 10/15/2023
7.0.4 447 9/18/2023
7.0.3 307 9/12/2023
7.0.2 244 9/5/2023
7.0.1 151 9/5/2023
7.0.0 148 9/5/2023
6.0.25 294 7/13/2023
6.0.24 513 6/26/2023
6.0.23 218 6/26/2023
6.0.22 323 6/18/2023
6.0.21 282 6/14/2023
6.0.20 273 6/5/2023
6.0.19 282 5/27/2023
6.0.18 280 5/27/2023
6.0.17 287 5/27/2023
6.0.16 284 5/27/2023
6.0.15 279 5/27/2023
6.0.14 282 5/27/2023
6.0.13 285 5/19/2023
6.0.12 276 5/19/2023
6.0.11 269 5/19/2023
6.0.10 273 5/19/2023
6.0.9 269 5/19/2023
6.0.8 303 5/11/2023
6.0.7 2,370 8/4/2022
6.0.6 918 7/6/2022
6.0.5 1,163 5/13/2022
6.0.0 1,029 3/27/2022
5.0.9 1,073 5/31/2021
5.0.8 932 5/23/2021
5.0.7 913 5/7/2021
5.0.6 943 4/14/2021
5.0.5 1,006 2/16/2021
5.0.4 945 1/29/2021
5.0.3 954 1/27/2021
5.0.2 1,039 12/9/2020
5.0.1 951 11/30/2020
5.0.0 861 11/14/2020
3.2.11 1,126 10/18/2020
3.2.10 1,016 10/3/2020
3.2.9 975 10/2/2020
3.2.8 1,043 9/10/2020
3.2.7 1,027 9/2/2020
3.2.6 1,091 8/12/2020
3.2.5 1,098 7/31/2020
3.2.4 1,084 7/3/2020
3.2.3 1,078 6/25/2020
3.2.2 1,114 6/18/2020
3.2.1 1,121 6/5/2020
3.2.0 1,084 6/4/2020
3.1.14 1,271 6/4/2020
3.1.13 1,233 5/25/2020
3.1.12 1,191 5/20/2020
3.1.11 1,169 5/18/2020
3.1.10 1,173 5/18/2020
3.1.9 1,153 5/17/2020
3.1.8 1,135 5/12/2020
3.1.7 1,172 5/2/2020
3.1.6 1,235 5/1/2020
3.1.5 1,182 4/21/2020
3.1.4 867 4/19/2020
3.1.3 879 4/15/2020
3.1.2.2 1,831 4/6/2020
3.1.2.1 1,678 3/19/2020
3.1.2 672 3/13/2020
0.0.1 200 6/26/2023