SteamPath 1.2.1

dotnet add package SteamPath --version 1.2.1
                    
NuGet\Install-Package SteamPath -Version 1.2.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="SteamPath" Version="1.2.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="SteamPath" Version="1.2.1" />
                    
Directory.Packages.props
<PackageReference Include="SteamPath" />
                    
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 SteamPath --version 1.2.1
                    
#r "nuget: SteamPath, 1.2.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.
#:package SteamPath@1.2.1
                    
#: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=SteamPath&version=1.2.1
                    
Install as a Cake Addin
#tool nuget:?package=SteamPath&version=1.2.1
                    
Install as a Cake Tool

SteamPath

This is a small utility library for finding the location on disk of applications installed with Steam. It exposes one function, SteamPath.SteamPath.Find(), which takes a Steam app ID (as a string) and returns its path, or null if the app isn't installed.

var path = SteamPath.SteamPath.Find("1245620");
Console.WriteLine($"Elden Ring is installed in {path}");

You can look up an application's app ID on https://steamdb.info/apps/.

OS Support

This package supports multiple OS configurations:

  • Windows: Works as long as Steam is installed normally.

  • Unix native: Works as long as Steam is installed in $HOME/.steam.

  • Unix under Proton: Works as long as Steam is installed normally.

  • Unix under WINE: Works as long as Steam is installed in /home/$USERNAME/.steam or /Users/{username}/Library/Application Support/Steam. Unfortunately, WINE doesn't have access to the $HOME environment variable, so this won't work if the user's home directory is in an unusual location.

Note that Windows, Proton, and WINE support require using the windows7.0 build target.

Product Compatible and additional computed target framework versions.
.NET 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.  net6.0-windows7.0 is compatible.  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.  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.  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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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.2.1 190 11/30/2024
1.2.0 166 8/21/2024
1.1.0 202 8/20/2024
1.0.0 159 8/19/2024