![]() |
VOOZH | about |
dotnet add package NickSoftware.Switchboard.Analyzers --version 0.1.0-preview.68
NuGet\Install-Package NickSoftware.Switchboard.Analyzers -Version 0.1.0-preview.68
<PackageReference Include="NickSoftware.Switchboard.Analyzers" Version="0.1.0-preview.68">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>
<PackageVersion Include="NickSoftware.Switchboard.Analyzers" Version="0.1.0-preview.68" />Directory.Packages.props
<PackageReference Include="NickSoftware.Switchboard.Analyzers"> <PrivateAssets>all</PrivateAssets> <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets> </PackageReference>Project file
paket add NickSoftware.Switchboard.Analyzers --version 0.1.0-preview.68
#r "nuget: NickSoftware.Switchboard.Analyzers, 0.1.0-preview.68"
#:package NickSoftware.Switchboard.Analyzers@0.1.0-preview.68
#addin nuget:?package=NickSoftware.Switchboard.Analyzers&version=0.1.0-preview.68&prereleaseInstall as a Cake Addin
#tool nuget:?package=NickSoftware.Switchboard.Analyzers&version=0.1.0-preview.68&prereleaseInstall as a Cake Tool
Roslyn analyzers and code fixes for the Switchboard Amazon Connect framework. Provides compile-time validation to catch errors before deployment.
⚠️ PREVIEW RELEASE: Part of the Switchboard preview release. APIs may change.
This package provides Roslyn analyzers that validate your Amazon Connect contact flows at compile time, catching common errors before deployment:
dotnet add package NickSoftware.Switchboard.Analyzers --prerelease
This package is typically installed alongside the main Switchboard package:
dotnet add package NickSoftware.Switchboard --prerelease
dotnet add package NickSoftware.Switchboard.Analyzers --prerelease
| Code | Severity | Description |
|---|---|---|
| SWB001 | Error | Flow must have at least one action |
| SWB002 | Warning | Flow should end with a terminal action (Disconnect or TransferToQueue) |
| SWB003 | Error | All transitions must point to valid action identifiers |
| SWB004 | Error | Flow name must be set before building |
| SWB005 | Error | Queue name cannot be empty or whitespace |
| SWB006 | Error | Prompt text is required |
| SWB007 | Error | Lambda function ARN is required |
| SWB008 | Error | Hours of operation name cannot be empty |
| SWB009 | Error | Circular reference detected in flow logic |
| SWB010 | Error | Action identifier must be unique within the flow |
The analyzer catches issues like this at compile time:
// ❌ SWB001: Flow must have at least one action
var flow = new FlowBuilder()
.SetName("EmptyFlow")
.Build();
// ❌ SWB006: Prompt text is required
var flow = new FlowBuilder()
.SetName("InvalidFlow")
.PlayPrompt("") // Empty prompt text
.Build();
// ✅ Valid flow
var flow = new FlowBuilder()
.SetName("ValidFlow")
.PlayPrompt("Welcome to our service")
.TransferToQueue("Support")
.Build();
The analyzers include automatic code fixes for common issues:
Analyzers can be configured in your .editorconfig:
# Treat SWB002 as an error instead of warning
dotnet_diagnostic.SWB002.severity = error
# Disable SWB010 (duplicate identifier check)
dotnet_diagnostic.SWB010.severity = none
Part of the Switchboard framework for Amazon Connect
Learn more about Target Frameworks and .NET Standard.
This package is not used by any NuGet packages.
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.1.0-preview.68 | 31 | 5/5/2026 |
| 0.1.0-preview.62 | 42 | 3/26/2026 |
| 0.1.0-preview.61 | 43 | 3/25/2026 |
| 0.1.0-preview.60 | 45 | 3/20/2026 |
| 0.1.0-preview.59 | 33 | 3/8/2026 |
| 0.1.0-preview.58 | 44 | 3/7/2026 |
| 0.1.0-preview.56 | 44 | 1/25/2026 |
| 0.1.0-preview.55 | 49 | 1/25/2026 |
| 0.1.0-preview.54 | 43 | 1/25/2026 |
| 0.1.0-preview.53 | 43 | 1/25/2026 |
| 0.1.0-preview.52 | 75 | 12/3/2025 |
| 0.1.0-preview.51 | 55 | 12/2/2025 |
| 0.1.0-preview.48 | 62 | 12/2/2025 |
| 0.1.0-preview.47 | 63 | 12/1/2025 |
| 0.1.0-preview.46 | 67 | 12/1/2025 |
| 0.1.0-preview.45 | 72 | 11/30/2025 |
| 0.1.0-preview.44 | 67 | 11/30/2025 |
| 0.1.0-preview.43 | 72 | 11/30/2025 |
| 0.1.0-preview.42 | 68 | 11/30/2025 |
| 0.1.0-preview.41 | 66 | 11/30/2025 |
Preview release - APIs may change. See documentation at https://nicksoftware.github.io/switchboard-docs/