Variants
Choose the SDK variant that matches your project type:| SDK | Project Type |
|---|---|
ANcpLua.NET.Sdk | Class libraries, Console apps, Workers |
ANcpLua.NET.Sdk.Web | ASP.NET Core APIs |
ANcpLua.NET.Sdk.Test | xUnit v3 test projects |
Base Features
All variants include:| Feature | Description |
|---|---|
| Banned APIs | Prevents legacy API usage |
| Analyzers | Code quality rules |
| Guard clauses | Throw.IfNull() and similar |
| Polyfills | Modern syntax for netstandard2.0 |
| Nullable | Enabled by default |
| LangVersion | latest |
Web Variant Additions
| Feature | Description |
|---|---|
| OpenTelemetry | Logging, metrics, tracing |
| Health endpoints | /health, /alive |
| HTTP resilience | Polly integration |
| DevLogs | Browser → server logging |
Test Variant Additions
| Feature | Description |
|---|---|
| xUnit v3 | With Microsoft Testing Platform |
| Coverage | Built-in collection |
| FakeLogger | Opt-in test logger |
