Publicizer - emyhrberg/ModReloader GitHub Wiki

Publicizer

This mod has the ability to publicize any mod you want (including any mod with a .dll), but most notably will it publicize tModLoader.dll.

This removes the need to use reflection and allows you to access internal fields, previously only accessible by reflection.

Getting Started

Requirement 1: Add Krafs Publicizer to your .csproj like this:

<ItemGroup>
   <PackageReference Include="Krafs.Publicizer" PrivateAssets="true" Version="2.2.1" />
   <Publicize Include="tModLoader" IncludeVirtualMembers="false" IncludeCompilerGeneratedMembers="false" />
</ItemGroup>

It should look something like this (note that DragonLens was added to show an example use case):

OnPaste 20250516-013657

Requirement 2: Launch via Visual Studio (if you try to launch game normally and compile your mod via the in-game compiler it won't work properly).

⚠️ **GitHub.com Fallback** ⚠️