T.Molodoy.SharpExtensions 0.0.46

There is a newer version of this package available.
See the version list below for details.
dotnet add package T.Molodoy.SharpExtensions --version 0.0.46
                    
NuGet\Install-Package T.Molodoy.SharpExtensions -Version 0.0.46
                    
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="T.Molodoy.SharpExtensions" Version="0.0.46" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="T.Molodoy.SharpExtensions" Version="0.0.46" />
                    
Directory.Packages.props
<PackageReference Include="T.Molodoy.SharpExtensions" />
                    
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 T.Molodoy.SharpExtensions --version 0.0.46
                    
#r "nuget: T.Molodoy.SharpExtensions, 0.0.46"
                    
#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 T.Molodoy.SharpExtensions@0.0.46
                    
#: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=T.Molodoy.SharpExtensions&version=0.0.46
                    
Install as a Cake Addin
#tool nuget:?package=T.Molodoy.SharpExtensions&version=0.0.46
                    
Install as a Cake Tool

Sharp Extensions

Kotlin-like extensions for C#.

AutoGlobalUsingStatic

Mark a public class or struct with [SharpExtensions.AutoGlobalUsingStatic] to automatically generate global using static global::YourNamespace.YourClass; in projects referencing its assembly, as well as in the annotated type's own assembly. The Sharp Extensions NuGet package includes the source generator; consuming projects need C# 10 or newer. Referencing a DLL alone does not load analyzers: install the NuGet package in the consuming project, or reference SharpExtensions.CodeGen as an analyzer when using project references.

The generator writes GlobalUsings.g.cs, includes accessible nested types, and skips open generic types and inaccessible types. The annotation is also inherited by derived types.

Unity / NuGetForUnity

Install T.Molodoy.SharpExtensions using NuGetForUnity. CodeGen is bundled in the same package under analyzers/dotnet/roslyn4.3/cs; no separate package is needed. NuGetForUnity automatically assigns the RoslynAnalyzer label and disables runtime loading of the generator. Included Unity importer metadata also disables runtime loading before the package is processed. Keep NuGetForUnity's FixRoslynAnalyzerImportSettings setting enabled.

Use a current NuGetForUnity version (4.3 or newer). Its Roslyn compatibility selection enables this generator on Unity 2022.3.12f1 and newer. Generating global static imports additionally requires the consuming assembly to compile with C# 10 or newer; the generator does not change Unity's language settings and skips generation on C# 9 and older.

Release package:

dotnet pack "Sharp Extensions/Sharp Extensions.csproj" -c Release -o artifacts/nuget
Product 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.  net8.0 was computed.  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 netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.1 is compatible. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen 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.1

    • No dependencies.

NuGet packages (4)

Showing the top 4 NuGet packages that depend on T.Molodoy.SharpExtensions:

Package Downloads
T.Molodoy.StableCollections

Java-like collections for C#.

T.Molodoy.Compose.Net

.NET implementation of Compose.

T.Molodoy.Compose.Net.Navigation

Navigation library for Compose.Net.

T.Molodoy.MviCore.Net

A simplified single-threaded MVICore implementation built on R3.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.0.48 752 10/26/2026
0.0.47 89 10/26/2026
0.0.46 299 10/26/2026
0.0.45 83 10/26/2026
0.0.44 89 10/26/2026
0.0.43 200 10/15/2026
0.0.42 88 10/15/2026
0.0.33 93 10/14/2026
Loading failed