![]() |
VOOZH | about |
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" />Directory.Packages.props
<PackageReference Include="DafnyLanguageServer" />Project file
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.0Install as a Cake Addin
#tool nuget:?package=DafnyLanguageServer&version=4.11.0Install as a Cake Tool
DafnyLS is a language server for Dafny. It is implemented in C# on .NET with OmniSharp's C# Language Server Protocol.
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
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.
# 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
# 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
# Mark ghost statements
# Default: true (mark the statements)
--ghost:markStatements=true
# 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 net8.0 is compatible. net8.0-android net8.0-android was computed. net8.0-browser net8.0-browser was computed. net8.0-ios net8.0-ios was computed. net8.0-maccatalyst net8.0-maccatalyst was computed. net8.0-macos net8.0-macos was computed. net8.0-tvos net8.0-tvos was computed. net8.0-windows net8.0-windows was computed. net9.0 net9.0 was computed. net9.0-android net9.0-android was computed. net9.0-browser net9.0-browser was computed. net9.0-ios net9.0-ios was computed. net9.0-maccatalyst net9.0-maccatalyst was computed. net9.0-macos net9.0-macos was computed. net9.0-tvos net9.0-tvos was computed. net9.0-windows net9.0-windows was computed. net10.0 net10.0 was computed. net10.0-android net10.0-android was computed. net10.0-browser net10.0-browser was computed. net10.0-ios net10.0-ios was computed. net10.0-maccatalyst net10.0-maccatalyst was computed. net10.0-macos net10.0-macos was computed. net10.0-tvos net10.0-tvos was computed. net10.0-windows net10.0-windows was computed. |
Showing the top 2 NuGet packages that depend on DafnyLanguageServer:
| Package | Downloads |
|---|---|
|
DafnyServer
Package Description |
|
|
DafnyDriver
Package Description |
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 4.11.1-nightly-2026-06-18-1... | 0 | 6/18/2026 |
| 4.11.1-nightly-2026-06-17-1... | 54 | 6/17/2026 |
| 4.11.1-nightly-2026-06-16-1... | 90 | 6/16/2026 |
| 4.11.1-nightly-2026-06-15-1... | 101 | 6/15/2026 |
| 4.11.1-nightly-2026-06-13-1... | 99 | 6/13/2026 |
| 4.11.1-nightly-2026-06-12-1... | 103 | 6/12/2026 |
| 4.11.1-nightly-2026-06-11-1... | 119 | 6/11/2026 |
| 4.11.1-nightly-2026-06-10-1... | 125 | 6/10/2026 |
| 4.11.1-nightly-2026-06-09-1... | 122 | 6/9/2026 |
| 4.11.1-nightly-2026-06-08-8... | 132 | 6/8/2026 |
| 4.11.1-nightly-2026-06-07-8... | 129 | 6/7/2026 |
| 4.11.1-nightly-2026-06-06-8... | 132 | 6/6/2026 |
| 4.11.1-nightly-2026-06-04-8... | 128 | 6/4/2026 |
| 4.11.1-nightly-2026-06-03-8... | 126 | 6/3/2026 |
| 4.11.1-nightly-2026-06-01-8... | 135 | 6/1/2026 |
| 4.11.1-nightly-2026-05-31-8... | 128 | 5/31/2026 |
| 4.11.1-nightly-2026-05-30-8... | 139 | 5/30/2026 |
| 4.11.1-nightly-2026-05-28-8... | 131 | 5/29/2026 |
| 4.11.1-nightly-2026-05-22-7... | 139 | 5/22/2026 |
| 4.11.0 | 464 | 8/25/2025 |