Kajabity.Demo 0.3.8

dotnet add package Kajabity.Demo --version 0.3.8
                    
NuGet\Install-Package Kajabity.Demo -Version 0.3.8
                    
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="Kajabity.Demo" Version="0.3.8" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Kajabity.Demo" Version="0.3.8" />
                    
Directory.Packages.props
<PackageReference Include="Kajabity.Demo" />
                    
Project file
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 Kajabity.Demo --version 0.3.8
                    
#r "nuget: Kajabity.Demo, 0.3.8"
                    
#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 Kajabity.Demo@0.3.8
                    
#: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=Kajabity.Demo&version=0.3.8
                    
Install as a Cake Addin
#tool nuget:?package=Kajabity.Demo&version=0.3.8
                    
Install as a Cake Tool

Kajabity.Demo

CI CodeQL NuGet NuGet Downloads GitHub Release License: Apache 2.0

Overview

Kajabity.Demo is a simple example NuGet package produced for an article on how to create and publish a NuGet package. It demonstrates a minimal library and test setup, suitable as a starting point or template.

Features

  • Simple demo class with a method to double an integer.
  • Multi-targeted builds for modern .NET and .NET Standard.
  • Provides a template for build, test, package and key maintenance actions in GitHub.

Installation

Install the package from NuGet with:

dotnet add package Kajabity.Demo

Usage

Here is a basic example of how to use the library once included in a project:

using Kajabity.Demo;

ComplexCalculation cc = new ComplexCalculation();
int value = cc.TimesTwo(9);

Releases

Feedback & Contributions

To offer feedback or ask questions, either comment on the associated article at kajabity.com or raise an issue on GitHub.

Contributions are welcome if you notice anything that could be improved.

Development Notes

Pre-commit and Security Tools

Run gitleaks using Docker:

docker run -v ${pwd}:/path ghcr.io/gitleaks/gitleaks:latest detect --source /path -v

Run all the pre-commit hooks:

pre-commit run --all-files
Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  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.  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. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • .NETStandard 2.0

    • No dependencies.
  • net6.0

    • No dependencies.
  • 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
0.3.8 243 8/25/2025
0.3.6 195 8/24/2025
0.3.5 197 8/24/2025
0.2.0-alpha 176 7/31/2023
0.1.0-alpha.6 140 7/31/2023
0.1.0-alpha.5 146 7/28/2023
0.1.0-alpha.3 132 7/26/2023
0.1.0-alpha 250 12/3/2021