PicoServer 1.6.4
dotnet add package PicoServer --version 1.6.4
NuGet\Install-Package PicoServer -Version 1.6.4
<PackageReference Include="PicoServer" Version="1.6.4" />
<PackageVersion Include="PicoServer" Version="1.6.4" />
<PackageReference Include="PicoServer" />
paket add PicoServer --version 1.6.4
#r "nuget: PicoServer, 1.6.4"
#:package PicoServer@1.6.4
#addin nuget:?package=PicoServer&version=1.6.4
#tool nuget:?package=PicoServer&version=1.6.4
PicoServer是什么?
PicoServer 是一款面向 .NET 生态的轻量级 Web 能力胶水库。零依赖,无需 IIS 或 Kestrel,既可轻松扩展现有程序,也能基于它开发独立应用,支持 Web API、WebSocket、站点构建等多种场景。开箱即用、零配置,不侵入业务。
✨ 特色
- 极简轻量:几十KB,零依赖,无需IIS/Kestrel。
- 功能完备:内置路由、Token/JWT认证、静态文件托管、跨域,并支持自定义中间件灵活扩展。
- 性能卓越:全异步架构,支持AOT编译,毫秒级启动。
🔌 无缝集成
- 胶水特性:不改动旧代码和开发习惯,可与任意库协同工作。
- 全平台覆盖:基于.NET Standard 2.0,支持 .NET Framework/Core/5/6+ 及 Windows/Linux/macOS。
What's PicoServer?
PicoServer is a lightweight Web capability glue library designed for the .NET ecosystem. Zero dependencies, no IIS or Kestrel required. It can easily extend existing applications or build standalone services, supporting Web API, WebSocket, static site hosting, and more. Out-of-the-box, zero configuration, non-intrusive to your business logic.
✨ Features
- Ultra-lightweight: Only a few dozen KB, zero dependencies, no IIS/Kestrel.
- Full-featured: Built-in routing, Token/JWT authentication, static file hosting, CORS, with flexible support for custom middleware.
- High performance: Fully asynchronous architecture, supports AOT compilation, millisecond-level startup.
🔌 Seamless Integration
- Glue design: Works without modifying legacy code or changing development habits, compatible with any library.
- Cross-platform: Built on .NET Standard 2.0, supporting .NET Framework / Core / 5 / 6+ and Windows / Linux / macOS.
C#示例(C# example)
var server = new WebAPIServer();
server.AddRoute("/", (req, rsp) => rsp.WriteAsync("Hello PicoServer"));
server.StartServer(); // 默认端口 8090
VB.NET示例(VB.NET example)
Dim server As New WebAPIServer()
server.AddRoute("/", Function(req, rsp) rsp.WriteAsync("Hello PicoServer"))
server.StartServer() ' 默认端口 8090
🚀 查看完整文档 | View Full Documentation
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. 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. net9.0 was computed. 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. |
| .NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
| .NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
| MonoAndroid | monoandroid was computed. |
| MonoMac | monomac was computed. |
| MonoTouch | monotouch was computed. |
| Tizen | tizen40 was computed. tizen60 was computed. |
| Xamarin.iOS | xamarinios was computed. |
| Xamarin.Mac | xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.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.