Vanara.VirtualDisk
4.2.1
Prefix Reserved
dotnet add package Vanara.VirtualDisk --version 4.2.1
NuGet\Install-Package Vanara.VirtualDisk -Version 4.2.1
<PackageReference Include="Vanara.VirtualDisk" Version="4.2.1" />
<PackageVersion Include="Vanara.VirtualDisk" Version="4.2.1" />
<PackageReference Include="Vanara.VirtualDisk" />
paket add Vanara.VirtualDisk --version 4.2.1
#r "nuget: Vanara.VirtualDisk, 4.2.1"
#:package Vanara.VirtualDisk@4.2.1
#addin nuget:?package=Vanara.VirtualDisk&version=4.2.1
#tool nuget:?package=Vanara.VirtualDisk&version=4.2.1
![]()
Vanara.VirtualDisk NuGet Package
.NET classes to manage Windows Virtual Storage (VHD and VHDX) using P/Invoke functions from VirtDisk.dll.
What is Vanara?
Vanara is a community project that contains various .NET assemblies which have P/Invoke functions, interfaces, enums and structures from Windows libraries. Each assembly is associated with one or a few tightly related libraries.
Issues?
First check if it's already fixed by trying the MyGet build. If you're still running into problems, file an issue.
Included in Vanara.VirtualDisk
| Classes | Enumerations |
|---|---|
| VirtualDisk VirtualDiskMetadata VirtualDiskSetInformation VirtualDiskSettingData VirtualDiskSnapshotInformation | CompactionMode DeviceType Subtype |
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 is compatible. 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 is compatible. 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. net8.0-windows7.0 is compatible. 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. net9.0-windows7.0 is compatible. 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 is compatible. |
| .NET Standard | netstandard2.0 is compatible. netstandard2.1 is compatible. |
| .NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 is compatible. 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. |
-
.NETCoreApp 3.1
- Microsoft.Win32.Registry (>= 5.0.0)
- System.IO.FileSystem.AccessControl (>= 5.0.0)
- System.Management (>= 6.0.2)
- System.Security.AccessControl (>= 6.0.1)
- Vanara.Core (>= 4.2.1)
- Vanara.Management (>= 4.2.1)
- Vanara.PInvoke.Security (>= 4.2.1)
- Vanara.PInvoke.VirtDisk (>= 4.2.1)
-
.NETFramework 4.8
- System.ComponentModel.Annotations (>= 5.0.0)
- System.Management (>= 9.0.7)
- System.Memory (>= 4.5.5)
- Vanara.Core (>= 4.2.1)
- Vanara.Management (>= 4.2.1)
- Vanara.PInvoke.Security (>= 4.2.1)
- Vanara.PInvoke.VirtDisk (>= 4.2.1)
-
.NETStandard 2.0
- Microsoft.Win32.Registry (>= 5.0.0)
- System.ComponentModel.Annotations (>= 5.0.0)
- System.IO.FileSystem.AccessControl (>= 5.0.0)
- System.Management (>= 9.0.7)
- System.Memory (>= 4.5.5)
- System.Security.AccessControl (>= 6.0.1)
- System.ValueTuple (>= 4.6.1)
- Vanara.Core (>= 4.2.1)
- Vanara.Management (>= 4.2.1)
- Vanara.PInvoke.Security (>= 4.2.1)
- Vanara.PInvoke.VirtDisk (>= 4.2.1)
-
.NETStandard 2.1
- Microsoft.Win32.Registry (>= 5.0.0)
- System.ComponentModel.Annotations (>= 5.0.0)
- System.IO.FileSystem.AccessControl (>= 5.0.0)
- System.Management (>= 9.0.7)
- System.Memory (>= 4.5.5)
- System.Runtime.CompilerServices.Unsafe (>= 6.1.2)
- System.Security.AccessControl (>= 6.0.1)
- Vanara.Core (>= 4.2.1)
- Vanara.Management (>= 4.2.1)
- Vanara.PInvoke.Security (>= 4.2.1)
- Vanara.PInvoke.VirtDisk (>= 4.2.1)
-
net5.0
- Microsoft.Win32.Registry (>= 5.0.0)
- System.IO.FileSystem.AccessControl (>= 5.0.0)
- System.Management (>= 6.0.2)
- System.Security.AccessControl (>= 6.0.1)
- Vanara.Core (>= 4.2.1)
- Vanara.Management (>= 4.2.1)
- Vanara.PInvoke.Security (>= 4.2.1)
- Vanara.PInvoke.VirtDisk (>= 4.2.1)
-
net6.0
- Microsoft.Win32.Registry (>= 5.0.0)
- System.Management (>= 8.0.0)
- System.Security.AccessControl (>= 6.0.1)
- Vanara.Core (>= 4.2.1)
- Vanara.Management (>= 4.2.1)
- Vanara.PInvoke.Security (>= 4.2.1)
- Vanara.PInvoke.VirtDisk (>= 4.2.1)
-
net7.0
- Microsoft.Win32.Registry (>= 5.0.0)
- System.Management (>= 8.0.0)
- System.Security.AccessControl (>= 6.0.1)
- Vanara.Core (>= 4.2.1)
- Vanara.Management (>= 4.2.1)
- Vanara.PInvoke.Security (>= 4.2.1)
- Vanara.PInvoke.VirtDisk (>= 4.2.1)
-
net8.0-windows7.0
- System.Management (>= 9.0.7)
- Vanara.Core (>= 4.2.1)
- Vanara.Management (>= 4.2.1)
- Vanara.PInvoke.Security (>= 4.2.1)
- Vanara.PInvoke.VirtDisk (>= 4.2.1)
-
net9.0-windows7.0
- System.Management (>= 9.0.7)
- Vanara.Core (>= 4.2.1)
- Vanara.Management (>= 4.2.1)
- Vanara.PInvoke.Security (>= 4.2.1)
- Vanara.PInvoke.VirtDisk (>= 4.2.1)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Vanara.VirtualDisk:
| Package | Downloads |
|---|---|
|
Vanara.Library
The full set of packages associated with the Vanara PInvoke Libraries. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 4.2.1 | 292 | 9/9/2025 |
| 4.2.0 | 232 | 8/25/2025 |
| 4.1.6 | 209 | 6/20/2025 |
| 4.1.5 | 195 | 6/20/2025 |
| 4.1.4 | 219 | 6/7/2025 |
| 4.1.3 | 276 | 4/24/2025 |
| 4.1.2 | 327 | 4/16/2025 |
| 4.1.1 | 380 | 3/7/2025 |
| 4.1.0 | 331 | 3/7/2025 |
| 4.0.6 | 254 | 2/24/2025 |
| 4.0.5 | 281 | 2/8/2025 |
| 4.0.4 | 587 | 9/13/2024 |
| 4.0.3 | 254 | 8/5/2024 |
| 4.0.2 | 248 | 6/24/2024 |
| 4.0.1 | 534 | 4/30/2024 |
| 4.0.0 | 237 | 3/29/2024 |
| 4.0.0-beta2 | 249 | 1/22/2024 |
| 4.0.0-beta | 167 | 11/20/2023 |
| 3.4.17 | 587 | 10/18/2023 |
| 3.4.16 | 431 | 8/7/2023 |
| 3.4.15 | 409 | 5/18/2023 |
| 3.4.14 | 497 | 4/15/2023 |
| 3.4.13 | 691 | 2/4/2023 |
| 3.4.12 | 652 | 1/15/2023 |
| 3.4.11 | 726 | 11/15/2022 |
| 3.4.10 | 810 | 10/25/2022 |
| 3.4.9 | 869 | 10/3/2022 |
| 3.4.8 | 895 | 9/16/2022 |
| 3.4.7 | 884 | 9/3/2022 |
| 3.4.6 | 931 | 8/7/2022 |
| 3.4.5 | 958 | 7/17/2022 |
| 3.4.4 | 946 | 7/5/2022 |
| 3.4.3 | 1,002 | 6/14/2022 |
| 3.4.2 | 984 | 5/13/2022 |
| 3.4.1 | 998 | 5/5/2022 |
| 3.4.0 | 1,032 | 3/14/2022 |
| 3.3.15 | 663 | 12/27/2021 |
| 3.3.14 | 731 | 10/26/2021 |
| 3.3.13 | 722 | 9/30/2021 |
| 3.3.12 | 707 | 8/30/2021 |
| 3.3.11 | 758 | 7/22/2021 |
| 3.3.10 | 772 | 6/4/2021 |
| 3.3.9 | 777 | 5/7/2021 |
| 3.3.8 | 813 | 4/7/2021 |
| 3.3.7 | 762 | 3/24/2021 |
| 3.3.6 | 734 | 3/19/2021 |
| 3.3.5 | 736 | 3/1/2021 |
| 3.3.4 | 721 | 2/11/2021 |
| 3.3.3 | 707 | 2/3/2021 |
| 3.3.2 | 768 | 1/21/2021 |
| 3.3.1 | 772 | 1/20/2021 |
| 3.3.0 | 898 | 11/20/2020 |
| 3.2.21 | 774 | 11/13/2020 |
| 3.2.20 | 950 | 11/8/2020 |
| 3.2.19 | 877 | 10/23/2020 |
| 3.2.18 | 882 | 10/21/2020 |
| 3.2.17 | 945 | 9/20/2020 |
| 3.2.16 | 838 | 9/7/2020 |
| 3.2.15 | 1,112 | 8/30/2020 |
| 3.2.14 | 1,023 | 8/20/2020 |
| 3.2.13 | 1,153 | 7/27/2020 |
| 3.2.12 | 1,062 | 7/13/2020 |
| 3.2.11 | 1,113 | 6/28/2020 |
| 3.2.10 | 1,216 | 6/14/2020 |
| 3.2.9 | 1,172 | 6/3/2020 |
| 3.2.7 | 1,171 | 5/4/2020 |
| 3.2.6 | 1,099 | 4/21/2020 |
| 3.2.5 | 1,136 | 4/15/2020 |
| 3.2.4 | 1,117 | 4/12/2020 |
| 3.2.3 | 1,116 | 4/1/2020 |
| 3.2.2 | 1,071 | 3/24/2020 |
| 3.2.1 | 1,111 | 3/17/2020 |
| 3.2.0 | 1,264 | 2/28/2020 |
| 3.1.9 | 1,159 | 1/17/2020 |
| 3.1.8 | 1,184 | 1/13/2020 |
| 3.1.7 | 1,183 | 1/6/2020 |
| 3.1.6 | 1,164 | 12/12/2019 |
| 3.1.5 | 1,268 | 11/26/2019 |
| 3.1.4 | 1,164 | 11/25/2019 |
| 3.1.3 | 1,357 | 11/8/2019 |
| 3.1.2 | 1,157 | 11/4/2019 |
| 3.1.1 | 1,168 | 10/17/2019 |
Currently implements:
Classes
VirtualDisk, VirtualDiskMetadata, VirtualDiskSetInformation, VirtualDiskSettingData, VirtualDiskSnapshotInformation
Enumerations
CompactionMode, DeviceType, Subtype