Skip to content

Embed the NuGet package installation instructions in your open source project website

Notifications You must be signed in to change notification settings

hlaueriksson/NuGetInstallTabs

Repository files navigation

NuGet Install Tabs

Embed the NuGet package installation instructions in your open source project website

HTML

Embed an iframe and provide the PackageId as the slug of the src:

<iframe src="https://nuget-install-tabs.azurewebsites.net/api/<PackageId>"></iframe>

Style the iframe to remove borders and set the appropriate size:

style="border-style:none; width:750px; height:112px;"

⚠️ The iframe tag is not allowed with GitHub Flavored Markdown, so this will not work in your README.md

Example

💁 Example with NUnit:

https://hlaueriksson.github.io/NuGetInstallTabs/

<iframe src="https://nuget-install-tabs.azurewebsites.net/api/NUnit" style="border-style:none; width:750px; height:112px;"></iframe>

NUnit

Markdown

Browse to the URL with a PackageId:

https://nuget-install-tabs.azurewebsites.net/api/<PackageId>/markdown/

Copy and paste the markdown!

✅ The markdown is valid GitHub Flavored Markdown, so this will work great in your README.md

Example

💁 Example with NUnit:

https://nuget-install-tabs.azurewebsites.net/api/NUnit/markdown/

| NuGet            |       | [![NUnit][1]][2]                                        |
| :--------------- | ----: | :------------------------------------------------------ |
| Package Manager  | `PM>` | `Install-Package NUnit -Version 3.12.0`                 |
| .NET CLI         | `>`   | `dotnet add package NUnit --version 3.12.0`             |
| PackageReference |       | `<PackageReference Include="NUnit" Version="3.12.0" />` |
| Paket CLI        | `>`   | `paket add NUnit --version 3.12.0`                      |

[1]: https://img.shields.io/nuget/v/NUnit.svg?label=NUnit
[2]: https://www.nuget.org/packages/NUnit

NUnit

Further reading

📖 Read more about how to install and manage NuGet packages

About

Embed the NuGet package installation instructions in your open source project website

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published