VDFParser.dotnet 1.0.1

There is a newer version of this package available.
See the version list below for details.
dotnet add package VDFParser.dotnet --version 1.0.1                
NuGet\Install-Package VDFParser.dotnet -Version 1.0.1                
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="VDFParser.dotnet" Version="1.0.1" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add VDFParser.dotnet --version 1.0.1                
#r "nuget: VDFParser.dotnet, 1.0.1"                
#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 VDFParser.dotnet as a Cake Addin
#addin nuget:?package=VDFParser.dotnet&version=1.0.1

// Install VDFParser.dotnet as a Cake Tool
#tool nuget:?package=VDFParser.dotnet&version=1.0.1                

VDFParser

Provides facilities to parse and write VDF files into managed objects

VDFParser is a small C# library that allows VDF files (specially as Steam's shortcuts.vdf) to be parsed and serialized. By now, the only implemented model is the already mentioned shortcuts file, but the FSM may be used to parse any other file, as long as the managed model is implemented using the patterns seen in the VDFEntry class.

Parsing

Invoking the static VDFParser.Parse method will yield an array of VDFEntry instances. You can either provide a file path or a readable generic Stream instance:

VDFParser.VDFParser.Parse("/tmp/shortcuts.vdf");
// => VDFEntry[] { ... }

Serializing

The VDFSerializer static class provides a Serialize method, that takes a given set of VDFEntry instances and returns a byte array corresponding to the shortcuts.vdf format.

VDFSerializer.Serialize(new VDFEntry[] { new VDFEntry { Name = "..." } });
// => byte[] { ... }

Other Considerations

It was noticed that Steam's do not follow a standard pattern for naming the fields in the mentioned file. You can find appname and AppName variations, but it appears that it does not enforce a single naming convention. This library was not extensively tested against multiple Steam installations and, therefore, more information or insights about this behavior is welcome.

License

MIT License

Copyright (c) 2016 Victor Gama

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
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 netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.1 is compatible. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • .NETStandard 2.1

    • 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.1.0 602 9/3/2022
1.0.1 212 9/3/2022
1.0.0 207 9/3/2022