DependencyManager.FsProj 0.1.6

There is a newer version of this package available.
See the version list below for details.
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 and Polyglot Notebooks. 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

DependencyManager.FsProj

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.

Sample:

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

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

Installation

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.

$workdir=".workdir"
$outdir=".depman"
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": [
    "--compilertool:./.depman"
  ]
Product Compatible and additional computed target framework versions.
.NET net5.0 is compatible.  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. 
Compatible target framework(s)
Included target framework(s) (in package)
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.2.6 215 7/17/2023
0.1.6 528 4/2/2022
0.1.5 522 2/12/2022