VdfsSharp 1.4.0

dotnet add package VdfsSharp --version 1.4.0
NuGet\Install-Package VdfsSharp -Version 1.4.0
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="VdfsSharp" Version="1.4.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add VdfsSharp --version 1.4.0
#r "nuget: VdfsSharp, 1.4.0"
#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.
// Install VdfsSharp as a Cake Addin
#addin nuget:?package=VdfsSharp&version=1.4.0

// Install VdfsSharp as a Cake Tool
#tool nuget:?package=VdfsSharp&version=1.4.0

VdfsSharp

Building, loading and extracting VDFS archives used by the games "Gothic" and "Gothic II"

The main aim of the project is to provide a way for the Gothic Mod Build Tool project to extract and build VDFS archives programmatically instead of using external tools.

Example

Reading

using VdfsSharp;
using System.IO;

//...

var reader = new VdfsReader("Anims.vdf");

var entries = reader.ReadEntries(false);

var humansMdh = entries.Where(entry => entry.Name == "HUMANS.MDH").First();

var content = reader.ReadEntryContent(humansMdh);

File.WriteAllBytes(@"_Work\Anims\_Compiled\Humans.mdh", content);

Extracting

using VdfsSharp;

//...

var extractor = new VdfsExtractor("Anims.vdf");

extractor.ExtractFiles("_Work\Anims", ExtractOption.Hierarchy);

Building

using VdfsSharp;

//...

var writer = new VdfsWriter("Scripts.vdf", "Scripts of my mod", GothicVersion.Gothic2);

writer.AddDirectory("_Work\Scripts");

writer.Save();

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. 
.NET Core netcoreapp2.0 is compatible.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Framework net47 is compatible.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • .NETCoreApp 2.0

    • No dependencies.
  • .NETFramework 4.7

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.4.0 640 6/3/2019
1.3.0 831 8/14/2018
1.2.0 791 7/27/2018
1.1.0 778 7/27/2018
1.0.0 910 7/17/2018