Aiursoft.WebTools
8.0.29
See the version list below for details.
dotnet add package Aiursoft.WebTools --version 8.0.29
NuGet\Install-Package Aiursoft.WebTools -Version 8.0.29
<PackageReference Include="Aiursoft.WebTools" Version="8.0.29" />
paket add Aiursoft.WebTools --version 8.0.29
#r "nuget: Aiursoft.WebTools, 8.0.29"
// Install Aiursoft.WebTools as a Cake Addin #addin nuget:?package=Aiursoft.WebTools&version=8.0.29 // Install Aiursoft.WebTools as a Cake Tool #tool nuget:?package=Aiursoft.WebTools&version=8.0.29
Aiursoft WebTools
A collection of tools for web development.
Installation
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 | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | 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. |
-
net8.0
- Aiursoft.CSTools (>= 8.0.4)
- Aiursoft.WebTools.Abstractions (>= 8.0.0)
- Net.Codecrete.QrCodeGenerator (>= 2.0.5)
NuGet packages (4)
Showing the top 4 NuGet packages that depend on Aiursoft.WebTools:
Package | Downloads |
---|---|
Aiursoft.SDK
The base class, tools and extends for Aiursoft web apps. |
|
MoongladePure.Web
Nuget package of 'Web' provided by MoongladePure |
|
Aiursoft.AiurEventSyncer.WebExtends
Nuget package of 'WebExtends' provided by Aiursoft |
|
Aiursoft.UiStack
Nuget package of 'UiStack' provided by Aiurosft |
GitHub repositories (1)
Showing the top 1 popular GitHub repositories that depend on Aiursoft.WebTools:
Repository | Stars |
---|---|
AiursoftWeb/Infrastructures
Mirror of: https://gitlab.aiursoft.cn/aiursoft/infrastructures
|
Version | Downloads | Last updated |
---|---|---|
8.0.31 | 117 | 12/8/2024 |
8.0.30 | 89 | 12/5/2024 |
8.0.29 | 79 | 12/5/2024 |
8.0.28 | 242 | 11/11/2024 |
8.0.27 | 178 | 10/21/2024 |
8.0.26 | 97 | 10/21/2024 |
8.0.25 | 88 | 10/21/2024 |
8.0.24 | 81 | 10/21/2024 |
8.0.23 | 209 | 9/13/2024 |
8.0.22 | 373 | 7/7/2024 |
8.0.21 | 129 | 6/29/2024 |
8.0.20 | 454 | 3/27/2024 |
8.0.19 | 105 | 3/26/2024 |
8.0.18 | 185 | 3/24/2024 |
8.0.17 | 159 | 3/20/2024 |
8.0.16 | 154 | 3/17/2024 |
8.0.15 | 122 | 3/17/2024 |
8.0.14 | 153 | 3/17/2024 |
8.0.13 | 146 | 3/17/2024 |
8.0.12 | 170 | 3/16/2024 |
8.0.11 | 129 | 3/16/2024 |
8.0.10 | 127 | 3/16/2024 |
8.0.9 | 127 | 3/15/2024 |
8.0.8 | 116 | 3/14/2024 |
8.0.7 | 123 | 3/14/2024 |
8.0.6 | 164 | 3/13/2024 |
8.0.5 | 136 | 3/13/2024 |
8.0.4 | 137 | 3/13/2024 |
8.0.2 | 205 | 2/28/2024 |
8.0.1 | 202 | 2/21/2024 |
8.0.0 | 543 | 2/19/2024 |
7.0.35 | 459 | 2/4/2024 |
7.0.34 | 206 | 2/2/2024 |
7.0.33 | 273 | 2/2/2024 |
7.0.32 | 203 | 1/30/2024 |
7.0.31 | 382 | 1/18/2024 |
7.0.30 | 111 | 1/18/2024 |
7.0.29 | 242 | 1/11/2024 |
7.0.28 | 364 | 1/5/2024 |
7.0.27 | 233 | 1/5/2024 |
7.0.26 | 154 | 1/5/2024 |
7.0.25 | 224 | 1/4/2024 |
7.0.24 | 870 | 1/4/2024 |
7.0.23 | 155 | 1/4/2024 |
7.0.22 | 375 | 12/26/2023 |
7.0.21 | 117 | 12/26/2023 |
7.0.20 | 253 | 12/24/2023 |
7.0.19 | 253 | 12/22/2023 |
7.0.18 | 126 | 12/22/2023 |
7.0.17 | 124 | 12/21/2023 |
7.0.16 | 310 | 12/12/2023 |
7.0.15 | 355 | 12/11/2023 |
7.0.14 | 128 | 12/11/2023 |
7.0.13 | 143 | 12/10/2023 |
7.0.12 | 121 | 12/10/2023 |
7.0.11 | 166 | 12/1/2023 |
7.0.10 | 323 | 11/26/2023 |
7.0.9 | 433 | 11/12/2023 |
7.0.8 | 254 | 11/2/2023 |
7.0.7 | 157 | 11/2/2023 |
7.0.6 | 219 | 10/31/2023 |
7.0.5 | 345 | 10/15/2023 |
7.0.4 | 438 | 9/18/2023 |
7.0.3 | 293 | 9/12/2023 |
7.0.2 | 232 | 9/5/2023 |
7.0.1 | 134 | 9/5/2023 |
7.0.0 | 136 | 9/5/2023 |
6.0.25 | 278 | 7/13/2023 |
6.0.24 | 497 | 6/26/2023 |
6.0.23 | 203 | 6/26/2023 |
6.0.22 | 308 | 6/18/2023 |
6.0.21 | 260 | 6/14/2023 |
6.0.20 | 251 | 6/5/2023 |
6.0.19 | 262 | 5/27/2023 |
6.0.18 | 259 | 5/27/2023 |
6.0.17 | 263 | 5/27/2023 |
6.0.16 | 261 | 5/27/2023 |
6.0.15 | 257 | 5/27/2023 |
6.0.14 | 259 | 5/27/2023 |
6.0.13 | 263 | 5/19/2023 |
6.0.12 | 254 | 5/19/2023 |
6.0.11 | 249 | 5/19/2023 |
6.0.10 | 252 | 5/19/2023 |
6.0.9 | 248 | 5/19/2023 |
6.0.8 | 282 | 5/11/2023 |
6.0.7 | 2,338 | 8/4/2022 |
6.0.6 | 889 | 7/6/2022 |
6.0.5 | 1,130 | 5/13/2022 |
6.0.0 | 992 | 3/27/2022 |
5.0.9 | 1,029 | 5/31/2021 |
5.0.8 | 889 | 5/23/2021 |
5.0.7 | 866 | 5/7/2021 |
5.0.6 | 898 | 4/14/2021 |
5.0.5 | 949 | 2/16/2021 |
5.0.4 | 898 | 1/29/2021 |
5.0.3 | 906 | 1/27/2021 |
5.0.2 | 990 | 12/9/2020 |
5.0.1 | 895 | 11/30/2020 |
5.0.0 | 812 | 11/14/2020 |
3.2.11 | 1,075 | 10/18/2020 |
3.2.10 | 967 | 10/3/2020 |
3.2.9 | 924 | 10/2/2020 |
3.2.8 | 995 | 9/10/2020 |
3.2.7 | 977 | 9/2/2020 |
3.2.6 | 1,041 | 8/12/2020 |
3.2.5 | 1,051 | 7/31/2020 |
3.2.4 | 1,037 | 7/3/2020 |
3.2.3 | 1,032 | 6/25/2020 |
3.2.2 | 1,069 | 6/18/2020 |
3.2.1 | 1,073 | 6/5/2020 |
3.2.0 | 1,037 | 6/4/2020 |
3.1.14 | 1,223 | 6/4/2020 |
3.1.13 | 1,186 | 5/25/2020 |
3.1.12 | 1,144 | 5/20/2020 |
3.1.11 | 1,123 | 5/18/2020 |
3.1.10 | 1,124 | 5/18/2020 |
3.1.9 | 1,103 | 5/17/2020 |
3.1.8 | 1,086 | 5/12/2020 |
3.1.7 | 1,125 | 5/2/2020 |
3.1.6 | 1,186 | 5/1/2020 |
3.1.5 | 1,132 | 4/21/2020 |
3.1.4 | 816 | 4/19/2020 |
3.1.3 | 830 | 4/15/2020 |
3.1.2.2 | 1,782 | 4/6/2020 |
3.1.2.1 | 1,627 | 3/19/2020 |
3.1.2 | 624 | 3/13/2020 |
0.0.1 | 183 | 6/26/2023 |