Skip to content

Commit 64b7e10

Browse files
Fully Qualify Install-Package command on website (#9203)
* Update to fully qualified command name and give info Co-authored-by: Joel Verhagen <[email protected]> Fix #9201
1 parent 0728f7d commit 64b7e10

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/NuGetGallery/Views/Packages/DisplayPackage.cshtml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,10 @@
8686
{
8787
Id = "package-manager",
8888
CommandPrefix = "PM> ",
89-
InstallPackageCommands = new [] { string.Format("Install-Package {0} -Version {1}", Model.Id, Model.Version) },
89+
InstallPackageCommands = new [] { string.Format("NuGet\\Install-Package {0} -Version {1}", Model.Id, Model.Version) },
90+
AlertLevel = AlertLevel.Info,
91+
AlertMessage = "This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of <a href='https://docs.microsoft.com/en-us/nuget/reference/ps-reference/ps-ref-install-package'>Install-Package</a>."
92+
9093
},
9194

9295
new PackageManagerViewModel(".NET CLI")

0 commit comments

Comments
 (0)