DafnyLanguageServer 4.11.0
See the version list below for details.
dotnet add package DafnyLanguageServer --version 4.11.0
NuGet\Install-Package DafnyLanguageServer -Version 4.11.0
<PackageReference Include="DafnyLanguageServer" Version="4.11.0" />
<PackageVersion Include="DafnyLanguageServer" Version="4.11.0" />
<PackageReference Include="DafnyLanguageServer" />
paket add DafnyLanguageServer --version 4.11.0
#r "nuget: DafnyLanguageServer, 4.11.0"
#:package DafnyLanguageServer@4.11.0
#addin nuget:?package=DafnyLanguageServer&version=4.11.0
#tool nuget:?package=DafnyLanguageServer&version=4.11.0
DafnyLS
DafnyLS is a language server for Dafny. It is implemented in C# on .NET with OmniSharp's C# Language Server Protocol.
Running
Place the Z3 executable in the language server's root directory or within the z3/bin subdirectory (already present in the release packages). If not on windows, ensure that the executable has execution permissions:
chmod u+x ./z3/bin/z3
The language server can be started either by the executable itself (e.g., DafnyLanguageServer.exe on windows) or with the following command.
dotnet DafnyLanguageServer.dll
Configuration
The language server can be configured using the DafnyLanguageServer.appsettings.json file as well as using CLI arguments.
For example, if you want to configure the automatic verification through the command line:
dotnet DafnyLanguageServer.dll --documents:verify=onsave
Or using the DafnyLanguageServer.appsettings.json configuration file:
{
"Documents": {
"Verify": "onsave"
}
}
Options provided through the command line have higher priority than the options provided within DafnyLanguageServer.appsettings.json.
Documents
# Sets when the automatic verification should be applied.
# Options:
# - never - Never verifies the document.
# - onchange - Verifies the document with each change.
# - onsave - Verifies the document each time it is saved.
# default: onchange
--documents:verify=onchange
Verifier
# Sets maximum execution time (in seconds) for verifications
# Default: 0 (no time limit)
--verifier:timelimit=0
# Sets the maximum number of virtual cores to use.
# Default: 0 (use half of the available virtual cores).
--verifier:vcscores=0
# Set the caching policy (like /verifySnapshots for Dafny.exe)
# Default: 0 (no caching).
--verifier:verifysnapshots=0
# Set whether or not to compute and report verification gutter statuses
# Default: 0 (no gutter status reported).
--verifier:gutterStatus=true
Ghost Diagnostics
# Mark ghost statements
# Default: true (mark the statements)
--ghost:markStatements=true
Plugins
# Provides a path to assemblies and optional space-separated command-line arguments after a comma.
# Repeat with --dafny:plugins:0=... --dafny:plugins:1=... for multiple plugins.
--dafny:plugins:0=path\to\example.dll
--dafny:plugins:0=path/to/example2.dll,oneArgument
--dafny:plugins:0=example3.dll,"firstArgument with \" space and quote" secondArgument
# On the command-line, you'd use the following escapes for the first and third examples:
"--dafny:plugins:0=path\\to\\example.dll"
"--dafny:plugins:0=example3.dll,\"firstArgument with \\\" space and quote\" secondArgument"
# For just the dafny executable, replace `--dafny:plugins:X` by `--plugin:` that you can repeat.
| 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. 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. |
-
net8.0
- DafnyCore (>= 4.11.0)
- Microsoft.Extensions.Configuration.CommandLine (>= 5.0.0)
- Microsoft.Extensions.Configuration.Json (>= 5.0.0)
- Microsoft.Extensions.Logging (>= 5.0.0)
- Newtonsoft.Json (>= 13.0.3)
- RangeTree (>= 3.0.1)
- Serilog (>= 2.12.0)
- Serilog.Extensions.Logging (>= 3.0.1)
- Serilog.Settings.Configuration (>= 3.1.0)
- Serilog.Sinks.Debug (>= 2.0.0)
- Serilog.Sinks.File (>= 5.0.0)
- System.Collections (>= 4.3.0)
- System.Diagnostics.Debug (>= 4.3.0)
- System.IO.FileSystem.Primitives (>= 4.3.0)
- System.Runtime.Handles (>= 4.3.0)
NuGet packages (2)
Showing the top 2 NuGet packages that depend on DafnyLanguageServer:
| Package | Downloads |
|---|---|
|
DafnyServer
Package Description |
|
|
DafnyDriver
Package Description |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 4.11.1-nightly-2026-02-15-8... | 25 | 2/15/2026 |
| 4.11.1-nightly-2026-02-14-8... | 32 | 2/14/2026 |
| 4.11.1-nightly-2026-02-13-8... | 32 | 2/13/2026 |
| 4.11.1-nightly-2026-02-12-8... | 42 | 2/12/2026 |
| 4.11.1-nightly-2026-02-11-5... | 71 | 2/11/2026 |
| 4.11.1-nightly-2026-02-10-5... | 106 | 2/10/2026 |
| 4.11.1-nightly-2026-02-09-5... | 109 | 2/9/2026 |
| 4.11.1-nightly-2026-02-08-5... | 114 | 2/8/2026 |
| 4.11.1-nightly-2026-02-06-5... | 111 | 2/6/2026 |
| 4.11.1-nightly-2026-02-05-5... | 115 | 2/5/2026 |
| 4.11.1-nightly-2026-02-04-5... | 113 | 2/4/2026 |
| 4.11.1-nightly-2026-02-03-5... | 110 | 2/3/2026 |
| 4.11.1-nightly-2026-02-01-5... | 114 | 2/1/2026 |
| 4.11.1-nightly-2026-01-29-5... | 115 | 1/29/2026 |
| 4.11.1-nightly-2026-01-28-5... | 113 | 1/28/2026 |
| 4.11.1-nightly-2026-01-27-5... | 112 | 1/27/2026 |
| 4.11.1-nightly-2026-01-26-5... | 116 | 1/26/2026 |
| 4.11.1-nightly-2026-01-24-5... | 113 | 1/24/2026 |
| 4.11.1-nightly-2026-01-23-5... | 115 | 1/23/2026 |
| 4.11.0 | 382 | 8/25/2025 |