VOOZH about

URL: https://www.nuget.org/packages/ValvePak/

⇱ NuGet Gallery | ValvePak 4.0.0.142




👁 Image
ValvePak 4.0.0.142

dotnet add package ValvePak --version 4.0.0.142
 
 
NuGet\Install-Package ValvePak -Version 4.0.0.142
 
 
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="ValvePak" Version="4.0.0.142" />
 
 
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="ValvePak" Version="4.0.0.142" />
 
Directory.Packages.props
<PackageReference Include="ValvePak" />
 
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 ValvePak --version 4.0.0.142
 
 
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: ValvePak, 4.0.0.142"
 
 
#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 ValvePak@4.0.0.142
 
 
#: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=ValvePak&version=4.0.0.142
 
Install as a Cake Addin
#tool nuget:?package=ValvePak&version=4.0.0.142
 
Install as a Cake Tool
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

<h1><img src="./Misc/logo.png" width="64" align="center"> Valve Pak (vpk) for .NET</h1>

👁 Build Status (GitHub)
👁 NuGet
👁 Coverage Status

VPK (Valve Pak) files are uncompressed archives used to package game content. This library allows you to read and extract files out of these paks.

Usage:

using var package = new Package();

// Open a vpk file
package.Read("pak01_dir.vpk");

// Can also pass in a stream
package.Read(File.OpenRead("pak01_dir.vpk"));

// Optionally verify hashes and signatures of the file if there are any
package.VerifyHashes();

// Find a file, this returns a PackageEntry
var file = package.FindEntry("path/to/file.txt");

if (file != null) {
	// Read a file to a byte array
	package.ReadEntry(file, out byte[] fileContents);
}

Do note that files such as pak01_001.vpk are just data files, you have to open pak01_dir.vpk.

Product Versions Compatible and additional computed target framework versions.
.NET net8.0 net8.0 is compatible.  net8.0-android net8.0-android was computed.  net8.0-browser net8.0-browser was computed.  net8.0-ios net8.0-ios was computed.  net8.0-maccatalyst net8.0-maccatalyst was computed.  net8.0-macos net8.0-macos was computed.  net8.0-tvos net8.0-tvos was computed.  net8.0-windows net8.0-windows was computed.  net9.0 net9.0 was computed.  net9.0-android net9.0-android was computed.  net9.0-browser net9.0-browser was computed.  net9.0-ios net9.0-ios was computed.  net9.0-maccatalyst net9.0-maccatalyst was computed.  net9.0-macos net9.0-macos was computed.  net9.0-tvos net9.0-tvos was computed.  net9.0-windows net9.0-windows was computed.  net10.0 net10.0 was computed.  net10.0-android net10.0-android was computed.  net10.0-browser net10.0-browser was computed.  net10.0-ios net10.0-ios was computed.  net10.0-maccatalyst net10.0-maccatalyst was computed.  net10.0-macos net10.0-macos was computed.  net10.0-tvos net10.0-tvos was computed.  net10.0-windows net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (2)

Showing the top 2 NuGet packages that depend on ValvePak:

Package Downloads
ValveResourceFormat

Parser, decompiler, and exporter for Valve's Source 2 resource file formats. Supports models, textures, materials, maps, particles, and more.

CS2CalloutExtractor

A library for extracting callouts from Counter-Strike 2 `.vpk` files.

GitHub repositories (2)

Showing the top 2 popular GitHub repositories that depend on ValvePak:

Repository Stars
ValveResourceFormat/ValveResourceFormat
Source 2 Viewer is an all-in-one tool to browse VPK archives, view, extract, and decompile Source 2 assets, including maps, models, materials, textures, sounds, and more.
ktxiaok/FireAxe
A Left 4 Dead 2 addon manager that supports hierarchical organization, workshop items and collections download, addon enablement management, etc.
Version Downloads Last Updated
4.0.0.142 13,432 11/11/2025
3.0.3.132 2,147 9/22/2025
2.0.1.107 12,356 5/9/2024
2.0.0.101 477 3/22/2024
1.8.0.93 1,003 2/13/2024
1.7.0.88 2,186 1/7/2024
1.6.2.76 7,577 11/23/2023
1.6.1.71 3,601 9/8/2023
1.6.0.67 369 9/5/2023
1.5.0.59 1,973 7/14/2023
1.4.0.53 2,269 3/22/2023
1.3.0.33 3,622 4/29/2022
1.2.0.24 1,005 1/15/2022
1.1.0.1 5,543 11/23/2021
1.0.2.35 3,022 6/23/2020
1.0.2.29 3,300 3/21/2019
1.0.0.24-AppVeyor 710 3/19/2019
0.4.0.11 3,346 9/18/2016
0.3.0.9 1,783 9/18/2016
0.2.0.6 1,586 9/18/2016