Skip to content

Commit

Permalink
Add .NET local tool installation instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
augustoproiete committed Feb 27, 2021
1 parent d000808 commit ba12605
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions src/NuGetGallery/Views/Packages/DisplayPackage.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -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 <a href='https://aka.ms/global-tools'>.NET tool</a> 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 <a href='https://aka.ms/global-tools'>.NET tool</a> you can call from the shell/command line.",
},
};
}
else if (Model.IsDotnetNewTemplatePackageType)
Expand Down

0 comments on commit ba12605

Please sign in to comment.