Skip to main content
Vanara.Core package icon

Vanara.Core

This library includes shared methods, structures and constants for use throughout the Vanara assemblies. Think of it as windows.h with some useful extensions. It includes: * Extension methods for working with enumerated types (enum), FILETIME, and method and property extractions via reflection * Extension and helper methods to marshaling structures arrays and strings * SafeHandle based classes for working with memory allocated via CoTaskMem, HGlobal, or Local calls that handles packing and extracting arrays, structures and raw memory * Safe pinning of objects in memory * Memory stream based on marshaled memory

Total Downloads
4.6M
4,598,488
Published
Sep 9, 2025
Latest stable version

Install

.NET CLI
dotnet add package Vanara.Core --version 4.2.1
Package Manager Console
Install-Package Vanara.Core -Version 4.2.1
PackageReference
<PackageReference Include="Vanara.Core" Version="4.2.1" />

Frameworks

.NETFramework4.8 .NETCoreApp3.1 net5.0 net6.0 net7.0 net8.0-windows7.0 net9.0-windows7.0 .NETStandard2.0 .NETStandard2.1

Dependencies

System.Memory
.NETFramework4.8
[4.5.5, )
System.Memory
.NETStandard2.0
[4.5.5, )
System.ValueTuple
.NETStandard2.0
[4.6.1, )

Adoption guide

A verified publisher signal is available. Assess fit from the package's supported frameworks, license and dependency graph rather than popularity alone.

Compatibility metadata lists 9 target frameworks; confirm the exact target used by your application.

How to read this guidance

Sources: published NuGet v3 registry metadata and explicit NuBrowse editorial guides. Refresh: package metadata is refreshed from NuGet when the page loads. Limit: this is not a security, legal or compatibility guarantee; validate the selected version in your project.

Useful next steps

Move from package metadata to a concrete selection or review workflow.