Requires NuGet 4.0 or higher.
dotnet add package N --version 0.2.0
NuGet\Install-Package N -Version 0.2.0
<PackageReference Include="N" Version="0.2.0" />
paket add N --version 0.2.0
#r "nuget: N, 0.2.0"
// Install N as a Cake Addin #addin nuget:?package=N&version=0.2.0 // Install N as a Cake Tool #tool nuget:?package=N&version=0.2.0
N - The Library for World's Smallest C# Program "That Does Something"�
Tired of boilerplate? Then N is for you!
N and all you need for a full C# program in
(at 4 characters):
Want to increment?
Absolutely need to assign something?
Declare a variable for a reference type (with warning) - this doesn't really do much:
or for a value type (with warning):
N let's you write the smallest programs featuring
Want to be asynchronous? World's Smallest C# async/await Program (8 characters)
Want to return a code? (9 characters)
Need a while loop (9 characters):
or for loop (9 characters):
or do while loop (13 characters):
Need to new something up (7 characters).
Ns got you covered (8 characters).
GetAwaiter() loop hole?
N let's you await an integer (8 characters).
Need to dispose with using:
Want to just return? You don't need
Want to do nothing? You don't need
This should be the world's smallest C# program out-of-the-box in .NET 5+ and C# 9+.
Supported Frameworks and Language
.NET Standard 2.0+ C# 10+
|Product||Versions Compatible and additional computed target framework versions.|
|.NET||net5.0 was computed. net5.0-windows was computed. net6.0 was computed. 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.|
|.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.|
- No dependencies.
This package is not used by any NuGet packages.
This package is not used by any popular GitHub repositories.