SylwiaSzunejko.SampleLibrary
0.0.1
The owner has unlisted this package.
This could mean that the package is deprecated, has security vulnerabilities or shouldn't be used anymore.
dotnet add package SylwiaSzunejko.SampleLibrary --version 0.0.1
NuGet\Install-Package SylwiaSzunejko.SampleLibrary -Version 0.0.1
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="SylwiaSzunejko.SampleLibrary" Version="0.0.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="SylwiaSzunejko.SampleLibrary" Version="0.0.1" />
<PackageReference Include="SylwiaSzunejko.SampleLibrary" />
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add SylwiaSzunejko.SampleLibrary --version 0.0.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: SylwiaSzunejko.SampleLibrary, 0.0.1"
#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.
#:package SylwiaSzunejko.SampleLibrary@0.0.1
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=SylwiaSzunejko.SampleLibrary&version=0.0.1
#tool nuget:?package=SylwiaSzunejko.SampleLibrary&version=0.0.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Sample C# Library
A sample C# library designed for testing release processes with comprehensive NuGet package metadata.
Features
- Calculator: Basic mathematical operations (add, subtract, multiply, divide)
- StringUtilities: String manipulation utilities (reverse, word count, title case)
- Comprehensive XML documentation
- NuGet package ready with proper metadata
- Source Link support for debugging
Installation
dotnet add package SampleLibrary
Usage
Calculator
using SampleLibrary;
var calculator = new Calculator();
int sum = calculator.Add(5, 3); // Returns 8
int difference = calculator.Subtract(10, 4); // Returns 6
int product = calculator.Multiply(3, 7); // Returns 21
double quotient = calculator.Divide(15.0, 3.0); // Returns 5.0
String Utilities
using SampleLibrary;
string reversed = StringUtilities.Reverse("hello"); // Returns "olleh"
int wordCount = StringUtilities.CountWords("hello world"); // Returns 2
string titleCase = StringUtilities.ToTitleCase("hello world"); // Returns "Hello World"
Building
Prerequisites
- .NET 8.0 SDK or later
Build Commands
# Restore dependencies
dotnet restore
# Build the project
dotnet build
# Build in release mode
dotnet build -c Release
# Create NuGet package
dotnet pack
# Create NuGet package in release mode
dotnet pack -c Release
NuGet Package Metadata
This project includes comprehensive NuGet package metadata:
- Package ID: SampleLibrary
- Version: 1.0.0
- Description: A sample C# library for testing release processes
- License: MIT
- Source Link: Enabled for debugging support
- Symbol Packages: Generated automatically (.snupkg)
- Documentation: XML documentation included
Project Structure
sample-csharp-project/
├── Calculator.cs # Basic calculator functionality
├── StringUtilities.cs # String manipulation utilities
├── SampleLibrary.csproj # Project file with NuGet metadata
├── SampleLibrary.sln # Solution file
├── Directory.Build.props # Global build properties
├── RELEASE_NOTES.md # Release notes
└── README.md # This file
Release Process
- Update version in
SampleLibrary.csproj - Update release notes in
RELEASE_NOTES.md - Build and test:
dotnet build && dotnet test - Create package:
dotnet pack -c Release - Publish to NuGet:
dotnet nuget push bin/Release/SampleLibrary.*.nupkg --api-key YOUR_API_KEY --source https://api.nuget.org/v3/index.json
License
This project is licensed under the MIT License.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | 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. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net8.0
- No dependencies.
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 |
|---|
Initial release of the sample library