SomeClassLib 0.3.0
dotnet add package SomeClassLib --version 0.3.0
NuGet\Install-Package SomeClassLib -Version 0.3.0
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="SomeClassLib" Version="0.3.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add SomeClassLib --version 0.3.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: SomeClassLib, 0.3.0"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install SomeClassLib as a Cake Addin #addin nuget:?package=SomeClassLib&version=0.3.0 // Install SomeClassLib as a Cake Tool #tool nuget:?package=SomeClassLib&version=0.3.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
dotnet-library
Sample badges
What is this?
Template repo for setting up a simple .NET library (nuget) show casing some common use cases:
- GitHub actions (CI, deploy)
- CI : Restore, build & unit tests via Xunit
- Pre-release:
- Automated publishing of pre-release versions to nuget.org
- Semver-versioning via GitVersion
- Manually triggered workflow
- Release:
- Same as Pre-release, + publish a Github release w/ release notes using the GitHub Release Notes API.
- A sensible
.editorconfig
for csharp - A sensible
.gitignore
for .NET projects - Commonly setup Nuget package contents:
- Package icon (embedded in nuget)
- Readme showing in nuget.org (embedded in nuget),
- Multi-targeting and conditional dependencies dep on TFM
- Bundling internal dependencies: peer dependencies/transient dependencies (project refs) as dlls in main nuget without publish of peer to nuget.org. See #2.
- Funding for GitHub Sponsors
- MIT License
Using the template
Requirements
The GitHub actions requirements:
- The sln file must be in
/source
- For publish to work, set a GitHub Secret
NUGETORGAPIKEY
for nuget.org
Conventions
- It builds & tests projects part of the sln found in
/source
- Renaming the sln file does not impact the GitHub actions.
- Renaming any projects does not impact the GitHub actions.
- Publishing a pre-release version is done via manually triggering the
prerelease
GH action in any branch (input to the trigger). Versioning handled automatically by GitVersion. - Publishing a release version is done the same way: manually triggering the
release
GH action.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net7.0 is compatible. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net7.0
- Microsoft.Extensions.Hosting.Abstractions (>= 7.0.0)
- Microsoft.Extensions.Logging.Abstractions (>= 7.0.0)
- Microsoft.Extensions.Options (>= 7.0.0)
-
net8.0
- Microsoft.Extensions.Hosting.Abstractions (>= 8.0.0)
- Microsoft.Extensions.Logging.Abstractions (>= 8.0.0)
- Microsoft.Extensions.Options (>= 8.0.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
0.3.0 | 3,270 | 11/15/2023 |
0.3.0-feature0002-b28fb60 | 112 | 11/15/2023 |
0.1.4 | 433 | 8/5/2022 |
0.1.3 | 330 | 12/9/2021 |
0.1.2 | 1,461 | 11/26/2021 |
0.1.2-feature0011-625f7c0 | 2,093 | 11/26/2021 |
0.1.2-ci0004-7f1901f | 237 | 11/11/2021 |
0.1.1 | 339 | 11/10/2021 |
0.1.0 | 328 | 11/9/2021 |
0.1.0-feature0011-0d10bb6 | 241 | 11/9/2021 |
0.1.0-ci0006-0ac8eb9 | 244 | 11/9/2021 |