Readme 1.0.0
See the version list below for details.
dotnet add package Readme --version 1.0.0
NuGet\Install-Package Readme -Version 1.0.0
<PackageReference Include="Readme" Version="1.0.0"> <PrivateAssets>all</PrivateAssets> <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets> </PackageReference>
<PackageVersion Include="Readme" Version="1.0.0" />
<PackageReference Include="Readme"> <PrivateAssets>all</PrivateAssets> <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets> </PackageReference>
paket add Readme --version 1.0.0
#r "nuget: Readme, 1.0.0"
#:package Readme@1.0.0
#addin nuget:?package=Readme&version=1.0.0
#tool nuget:?package=Readme&version=1.0.0
Adds automatic package readme packing and include-directive resolution at pack time. Works with SDK Pack and NuGetizer (no NuGetizer required).
<PackageReference Include="Readme" Version="*" PrivateAssets="all" />
When the project is packable and a readme.md (or $(PackageReadmeFile)) is present:
- The readme is included in the package automatically (
PackReadme=falseto opt out). - Include directives are resolved before pack (local files, nested includes,
#fragmentsections, HTTP(S) URLs). - The processed file is written under
$(BaseIntermediateOutputPath)and that intermediate file is what is packed.
Include syntax
Use an HTML comment starting with include and a path (relative file, #fragment, or http(s) URL). Nested includes are supported.
Fragments resolve in this order:
- Explicit comment anchors — matching
…pairs (when present). The markers and everything between them is included, so you control whether a section title is in the range (for example put## Usageinside the pair to keep the title, or place the pair after the heading to omit it). - GitHub heading auto-anchors — otherwise the Markdown ATX heading whose GitHub auto-anchor matches the fragment (for example
## Usagefor#usage). The heading line itself is included, through the line before the next heading of the same or higher level.
Use explicit `` markup when you need maximum control over whether the section name is included; auto-anchors always include the matching heading.
Unresolved includes log a warning and leave the marker in place (pack does not fail).
Remote includes
Absolute http(s) includes from a local file are always allowed (subject to scheme). Includes nested inside remote content resolve relative paths against that URL’s base. Absolute URLs from remote content are allowed only when the host is the same as (or a subdomain of) the including remote host, or is listed in @(ReadmeIncludeDomain) (subdomains of listed domains count too). Other schemes/hosts warn and stay unresolved.
Properties
| Property / item | Default | Description |
|---|---|---|
PackReadme |
true |
Auto-pack the package readme when present |
PackageReadmeFile |
readme.md if it exists |
Package readme path / in-package filename |
ReadmeIncludeScheme |
https |
Semicolon-separated URI schemes allowed for remote includes (add http only if needed) |
@(ReadmeIncludeDomain) |
(empty) | Hosts allowed for absolute remote includes nested inside remote content |
<PropertyGroup>
<ReadmeIncludeScheme>https;http</ReadmeIncludeScheme>
</PropertyGroup>
<ItemGroup>
<ReadmeIncludeDomain Include="cdn.example.com" />
</ItemGroup>
Open Source Maintenance Fee
To ensure the long-term sustainability of this project, users of this package who generate revenue must pay an Open Source Maintenance Fee. While the source code is freely available under the terms of the License, this package and other aspects of the project require adherence to the Maintenance Fee.
To pay the Maintenance Fee, become a Sponsor at the proper OSMF tier. A single fee covers all of Devlooped packages.
Sponsors
Learn more about Target Frameworks and .NET Standard.
This package has no dependencies.
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Readme:
| Package | Downloads |
|---|---|
|
NuGetizer
Simple, flexible and powerful NuGet packaging |
GitHub repositories
This package is not used by any popular GitHub repositories.