Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/hlaueriksson/nugetinstalltabs

Embed the NuGet package installation instructions in your open source project website
https://github.com/hlaueriksson/nugetinstalltabs

embed installation instructions nuget package

Last synced: about 2 months ago
JSON representation

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

Awesome Lists containing this project

README

        

# NuGet Install Tabs

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

- [HTML](#html)
- [Markdown](#markdown)
- [Further reading](#further-reading)

## HTML

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

```html

```

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

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

:warning: The `iframe` tag is not allowed with [GitHub Flavored Markdown](https://github.github.com/gfm/), so this will not work in your `README.md`

### Example

:information_desk_person: Example with [NUnit](https://www.nuget.org/packages/NUnit/):

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

```html

```

![NUnit](NUnit.png)

## Markdown

Browse to the URL with a `PackageId`:

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

Copy and paste the markdown!

:white_check_mark: The markdown is valid [GitHub Flavored Markdown](https://github.github.com/gfm/), so this will work great in your `README.md`

### Example

:information_desk_person: Example with [NUnit](https://www.nuget.org/packages/NUnit/):

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

```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 | | `` |
| 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](NUnit-markdown.png)

## Further reading

:open_book: Read more about how to [install and manage NuGet packages](https://docs.microsoft.com/en-us/nuget/consume-packages/install-use-packages-visual-studio)