SteamModReference 0.1.1

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

Steam-Mod-Reference

MSBuild tasks/props/targets that let a .NET project reference DLLs shipped inside Steam Workshop mods , by downloading them via SteamCMD at build time.

No SteamCMD credentials are required - all downloads are anonymous, which is sufficient for public workshop items

Game agnostic but tested on Rimworld

Requirements

On linux/ github

sudo dpkg --add-architecture i386
sudo apt update
sudo apt install libc6:i386

It also requires net10 SDK installed. Your mods can target whatever they want → mono, net461 etc

NOT TESTED ON WINDOWS WHATSOEVER

Usage



<PropertyGroup>
  <SteamModAppId>294100</SteamModAppId>
  <SteamModDefaultAssemblies>1.6/Assemblies/*.*;Assemblies/*.*</SteamModDefaultAssemblies>
</PropertyGroup>

<ItemGroup>
  <PackageReference Include="SteamModReference" Version="0.1.0" PrivateAssets="all" />
</ItemGroup>

<ItemGroup>
  <SteamModReference Include="2872901762" />
  
  
</ItemGroup>
Metadata Meaning
Include Workshop item id. Required
Assemblies Path/glob under the mod's content root to find dll(s). Omit to use $(SteamModDefaultAssemblies).
AllowDuplicates true to force-reference even if an assembly of the same name is already referenced. Default false.

Properties

Property Default Meaning
SteamModAppId 294100 (RimWorld) Steam AppId the workshop ids belong to.
SteamModDefaultAssemblies 1.6/Assemblies/*.*;Assemblies/*.* Ordered, ;-separated fallback patterns tried when an item has no Assemblies metadata. First pattern that matches ≥1 dll wins.
SteamModIntermediateDir $(BaseIntermediateOutputPath)steam\ Where steamcmd + downloaded workshop content is staged.
SteamModForceRedownload false Escape hatch to bust the cache (not yet wired to actual skip-logic - see PLAN.md).
SteamModCleanRemovesToolCache false dotnet clean always clears staged mod content + manifest. Set true to also remove the cached steamcmd binary itself on clean (fully-from-scratch reset, re-downloads steamcmd next build).

Clean behavior

dotnet clean (and VS "Clean") normally only touches the SDK's own obj/bin outputs - it has no idea about the workshop content staged under $(SteamModIntermediateDir).

This package hooks AfterTargets="Clean" so that running clean also removes:

  • staged workshop mod content (.../steam/steamapps/workshop)
  • the manifest file (once Phase 3 incrementality lands - see PLAN.md)

The cached steamcmd tool binary itself is left alone by default (set SteamModCleanRemovesToolCache=true to remove that too).

Repo layout

src/                                    the MSBuild task assembly (net472 + net8.0)
build/                                  props/targets shipped to direct consumers
buildTransitive/                        thin pass-through for transitive consumers
tests/ConsumerSample/                   a project that consumes the package, for local testing
PLAN.md                                 what's implemented vs. still to do

License

MIT

There are no supported framework assets in this package.

Learn more about Target Frameworks and .NET Standard.

This package has 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
0.1.1 68 9/13/2026
0.1.0 71 9/13/2026