PicoServer 1.6.4

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

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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • .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.

Version Downloads Last Updated
1.6.4 84 3/7/2026
1.6.3 79 3/5/2026
1.6.2 96 2/16/2026
1.6.1 92 2/13/2026
1.6.0 99 2/9/2026
1.5.10 99 1/23/2026
1.5.9 91 1/20/2026
1.5.6 106 1/17/2026
1.5.5 100 1/15/2026
1.5.4 99 1/15/2026
1.5.3 110 1/12/2026