Skip to content

Instantly share code, notes, and snippets.

@loic-sharma
Last active September 1, 2017 22:58
Show Gist options
  • Save loic-sharma/43ac56a07d59cea430fb658a5961cad5 to your computer and use it in GitHub Desktop.
Save loic-sharma/43ac56a07d59cea430fb658a5961cad5 to your computer and use it in GitHub Desktop.
Add Paket tab to NuGet Gallery
From 0c8eb16ecaeedf9ddfd1fc10944dbdef5bd094f0 Mon Sep 17 00:00:00 2001
From: Loic Sharma <[email protected]>
Date: Fri, 1 Sep 2017 15:56:49 -0700
Subject: [PATCH] Added tab for Paket
---
src/NuGetGallery/Views/Packages/DisplayPackage.cshtml | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/src/NuGetGallery/Views/Packages/DisplayPackage.cshtml b/src/NuGetGallery/Views/Packages/DisplayPackage.cshtml
index 569e3f7d5..2eefd0007 100644
--- a/src/NuGetGallery/Views/Packages/DisplayPackage.cshtml
+++ b/src/NuGetGallery/Views/Packages/DisplayPackage.cshtml
@@ -23,6 +23,15 @@
CommandPrefix = "> ",
InstallPackageCommand = string.Format("dotnet add package {0} --version {1}", Model.Id, Model.Version)
},
+
+ new ThirdPartyPackageManagerViewModel()
+ {
+ Id = "paket-cli",
+ Name = "Paket CLI",
+ CommandPrefix = "> ",
+ InstallPackageCommand = string.Format("paket add {0} --version {1}", Model.Id, Model.Version),
+ ContactUrl = "https://github.com/fsprojects/Paket/issues"
+ },
};
}
@section SocialMeta {
--
2.14.1.windows.1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment