DependencyManager.FsProj 0.1.6

.NET 5.0
dotnet add package DependencyManager.FsProj --version 0.1.6
NuGet\Install-Package DependencyManager.FsProj -Version 0.1.6
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="DependencyManager.FsProj" Version="0.1.6" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add DependencyManager.FsProj --version 0.1.6
#r "nuget: DependencyManager.FsProj, 0.1.6"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install DependencyManager.FsProj as a Cake Addin
#addin nuget:?package=DependencyManager.FsProj&version=0.1.6

// Install DependencyManager.FsProj as a Cake Tool
#tool nuget:?package=DependencyManager.FsProj&version=0.1.6


This nuget package enables loading .fsproj files in .fsx scripts. It extends #r syntax with fsproj dependency manager, so you can do #r "fsproj: PATH_TO_FSPROJ.fsproj" and it will load all references and files from the project.


#r "fsproj: ./test/test.fsproj"

let t = test.Say.hello "Chris"
printfn "RESULT: %s" t


If you are using powershell you can use following script to install dependency manager to current directory. Probably a similar script for linux shell will also work.

dotnet new classlib -o $workdir -n depman
dotnet add $workdir package DependencyManager.FsProj
dotnet publish $workdir -o $outdir
Remove-Item -Recurse $workdir

After that you can call dotnet fsi --compilertool:./.depman script.fsx or add following line to vscode settings.json.

  "FSharp.fsiExtraParameters": [
Product Versions
.NET net5.0 net5.0-windows net6.0 net6.0-android net6.0-ios net6.0-maccatalyst net6.0-macos net6.0-tvos net6.0-windows
Compatible target framework(s)
Additional computed target framework(s)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
0.1.6 289 4/2/2022
0.1.5 299 2/12/2022