DependencyManager.FsProj 0.1.5

.NET 5.0
There is a newer version of this package available.
See the version list below for details.
NuGet\Install-Package DependencyManager.FsProj -Version 0.1.5
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.
dotnet add package DependencyManager.FsProj --version 0.1.5
<PackageReference Include="DependencyManager.FsProj" Version="0.1.5" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add DependencyManager.FsProj --version 0.1.5
#r "nuget: DependencyManager.FsProj, 0.1.5"
#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.5

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

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.

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 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 177 4/2/2022
0.1.5 186 2/12/2022