Fantomas.Core 5.2.0-alpha-008

This is a prerelease version of Fantomas.Core.
There is a newer version of this package available.
See the version list below for details.
dotnet add package Fantomas.Core --version 5.2.0-alpha-008
                    
NuGet\Install-Package Fantomas.Core -Version 5.2.0-alpha-008
                    
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="Fantomas.Core" Version="5.2.0-alpha-008" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Fantomas.Core" Version="5.2.0-alpha-008" />
                    
Directory.Packages.props
<PackageReference Include="Fantomas.Core" />
                    
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 Fantomas.Core --version 5.2.0-alpha-008
                    
#r "nuget: Fantomas.Core, 5.2.0-alpha-008"
                    
#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 Fantomas.Core@5.2.0-alpha-008
                    
#: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=Fantomas.Core&version=5.2.0-alpha-008&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=Fantomas.Core&version=5.2.0-alpha-008&prerelease
                    
Install as a Cake Tool

Fantomas

Fantomas logo

GitHub Workflow Status (event) Discord Nuget (with prereleases)

F# source code formatter, inspired by scalariform for Scala, ocp-indent for OCaml and PythonTidy for Python.

dotnet tool install fantomas

Documentation is available at https://fsprojects.github.io/fantomas/docs/index.html

Contributing Guidelines

See the Contribution Guidelines and our contributors 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.

NuGet packages (6)

Showing the top 5 NuGet packages that depend on Fantomas.Core:

Package Downloads
Fantomas.Extras

Utility package for Fantomas

Myriad.Core

Core Myriad library used for developing plugins

Fabulous.AST

Fabulous.AST, an Abstract Syntax Tree (AST) Domain Specific Language (DSL) for F#.

WoofWare.Whippet.Fantomas

Helpers for accessing Fantomas syntax trees.

Partas.Feliz.Generator

Package Description

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
8.0.0-alpha-002 379 12/15/2025
8.0.0-alpha-001 123 12/12/2025
7.0.5 1,226 12/5/2025
7.0.4 202 12/5/2025
7.0.3 8,815 7/4/2025
7.0.2 860 5/28/2025
7.0.1 4,527 2/21/2025
7.0.0 1,641 1/10/2025
7.0.0-beta-001 181 12/30/2024
7.0.0-alpha-004 175 12/12/2024
7.0.0-alpha-003 189 11/29/2024
7.0.0-alpha-002 154 11/2/2024
7.0.0-alpha-001 230 9/16/2024
6.3.16 3,841 10/29/2024
6.3.15 16,094 9/14/2024
6.3.14 274 9/14/2024
6.3.13 289 9/10/2024
6.3.12 414 9/5/2024
6.3.11 876 8/16/2024
5.2.0-alpha-008 277 12/28/2022
Loading failed

### Fixes

* * else followed by //comment and then if has incorrect indention. [#2449](https://github.com/fsprojects/fantomas/issues/2449)
* * Multiple List concat operators are not seen as the same operator. [#2472](https://github.com/fsprojects/fantomas/issues/2472)
* * Multiline string inside lambda expression fails to format. [#1299](https://github.com/fsprojects/fantomas/issues/1299)
* * Can't format fragment of source code with #if element, and keyword, and triple-slash comment. [#2360](https://github.com/fsprojects/fantomas/issues/2360)
* * Wrong formatting applied to fragment of code with #if clause. [#2361](https://github.com/fsprojects/fantomas/issues/2361)
* * Comment in middle of pattern fail formatting. [#1939](https://github.com/fsprojects/fantomas/issues/1939)