Use short F# scripts to define .NET projects and solutions!
This is just a nicer alternative to
.*proj
and.sln
files. If you need a fully-featured build system, consider usingFake
orNuke
.
- Create and open a F# script file and import this library:
#r "nuget: KiDev.Baikal"
- Write definition of your solution:
// __SOURCE_DIRECTORY__ - F# literal, path to directory that contains this script
Solution(__SOURCE_DIRECTORY__)
|> AddProject(FS()
|> TargetFramework "net6.0"
|> OutputType Exe
|> Compile [ Include "Program.fs" ])
|> run
- Run
dotnet fsi your_script.fsx
. This will generate.*proj
(and optionally,.sln
) files based on your script.
Script file for this project.
Also look to Examples\
folder.
Currently this is a prototype.
Things to do before releasing 1.0.0
:
- Tasks dependency/error handling
- Bunch of helper functions to write tasks
- Solution script and generated files timestamping
- Support more features of
.**proj
files - Maybe, .NET tool or even a VS extension?