Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Write, review, or modernize F# code in .NET repositories with functional-first design, algebraic data types, pattern matching, pipelines, async workflows, project ordering, and C# interop. USE FOR: F# .fs/.fsproj code; discriminated unions, records, options, results, pattern matching, computation expressions, or functional domain modeling; strongly typed AI-generated .NET code. DO NOT USE FOR: C# language modernization; FSI-only exploratory scripts with no project changes. INVOKES: inspect .fspr
91% 100%+9 ptsof test cases passed
Passed 22 of 22 test cases with the skill, and 20 of 22 without it.
When creating an F# class library in a standard .NET 8 solution, a developer wants to execute `dotnet add package FSharp.Core` immediately for every project. Under what condition should `FSharp.Core` be added or pinned explicitly as a NuGet package?
The response states explicit package addition is reserved for repository deterministic package versioning policies.
3 of 3 safety checks passed
.fs, .fsx, .fsi, or .fsproj filesmodern-csharpfsiUse the .NET SDK templates when adding F# projects.
dotnet new classlib -lang "F#" -o src/Domain
dotnet new console -lang "F#" -o src/App
dotnet new xunit -lang "F#" -o tests/Domain.Tests
dotnet sln add src/Domain/Domain.fsproj tests/Domain.Tests/Domain.Tests.fsproj
dotnet add tests/Domain.Tests/Domain.Tests.fsproj reference src/Domain/Domain.fsproj
dotnet build
FSharp.Core is normally supplied by the F# SDK project. Add or pin it explicitly only when the repo has a package policy that requires deterministic package versions.
dotnet add src/Domain/Domain.fsproj package FSharp.Core
F# compiles files in the order listed in the project file. Define types and modules before files that consume them.
Skills that do similar work, with their benchmark result.
Next to this one in the catalogue, plus more from the same author.