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 * IEnumerable helpers for COM enumerations * Custom marshaler for CoTaskMem pointers * Enhanced error results classes for HRESULT, Win32Error and NTStatus * Standard windows.h macros (e.g. HIWORD, MAKELONG, etc.) * Overlapped method wrapper * Resource ID holder

Total Downloads
4.6M
4,597,296
Published
May 16, 2026
Latest stable version

Install

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

Frameworks

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

Dependencies

[5.0.0, )
System.Memory
.NETFramework4.8
[4.6.3, )
[5.0.0, )
[6.0.1, )
[5.0.0, )
[5.0.0, )
System.Memory
.NETStandard2.0
[4.6.3, )
[6.0.1, )
[5.0.0, )
[5.0.0, )
[6.0.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 10 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.