Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/hlaueriksson/nugetinstalltabs
- Owner: hlaueriksson
- Created: 2019-08-05T17:27:50.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-09-15T20:54:10.000Z (over 5 years ago)
- Last Synced: 2024-10-27T11:16:47.935Z (3 months ago)
- Topics: embed, installation, instructions, nuget, package
- Language: HTML
- Homepage: https://hlaueriksson.github.io/NuGetInstallTabs/
- Size: 79.1 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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)