Skip to content

Commit 1d671e0

Browse files
authored
Add F# interactive installation instructions (#8375)
Addresses https://github.com/NuGet/Engineering/issues/3527
1 parent a944a13 commit 1d671e0

1 file changed

Lines changed: 12 additions & 1 deletion

File tree

src/NuGetGallery/Views/Packages/DisplayPackage.cshtml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,18 @@
9191
Id = "paket-cli",
9292
CommandPrefix = "> ",
9393
InstallPackageCommand = string.Format("paket add {0} --version {1}", Model.Id, Model.Version),
94-
}
94+
},
95+
96+
new PackageManagerViewModel("F# Interactive")
97+
{
98+
Id = "fsharp-interactive",
99+
CommandPrefix = "> ",
100+
InstallPackageCommand = string.Format("#r \"nuget: {0}, {1}\"", Model.Id, Model.Version),
101+
AlertLevel = AlertLevel.Info,
102+
AlertMessage = string.Format(
103+
"For F# scripts that support <a href=\"{0}\">#r syntax</a>, copy this into the source code to reference the package.",
104+
"https://docs.microsoft.com/en-us/dotnet/fsharp/tools/fsharp-interactive/#referencing-packages-in-f-interactive")
105+
},
95106
};
96107
}
97108
}

0 commit comments

Comments
 (0)