diff --git a/src/NuGetGallery/Views/Packages/DisplayPackage.cshtml b/src/NuGetGallery/Views/Packages/DisplayPackage.cshtml
index a63df8e87f..93ca124a89 100644
--- a/src/NuGetGallery/Views/Packages/DisplayPackage.cshtml
+++ b/src/NuGetGallery/Views/Packages/DisplayPackage.cshtml
@@ -30,12 +30,25 @@
{
new PackageManagerViewModel(".NET CLI (Global)")
{
- Id = "dotnet-cli",
+ Id = "dotnet-cli-global",
CommandPrefix = "> ",
InstallPackageCommand = string.Format("dotnet tool install --global {0} --version {1}", Model.Id, Model.Version),
AlertLevel = AlertLevel.Info,
AlertMessage = "This package contains a .NET tool you can call from the shell/command line.",
- }
+ },
+
+ new PackageManagerViewModel(".NET CLI (Local)")
+ {
+ Id = "dotnet-cli-local",
+ CommandPrefix = "> ",
+ InstallPackageCommand = string.Join
+ (Environment.NewLine,
+ "dotnet new tool-manifest # if you are setting up this repo",
+ string.Format(" dotnet tool install --local {0} --version {1}", Model.Id, Model.Version)
+ ),
+ AlertLevel = AlertLevel.Info,
+ AlertMessage = "This package contains a .NET tool you can call from the shell/command line.",
+ },
};
}
else if (Model.IsDotnetNewTemplatePackageType)