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.
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):
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).
There was an error while loading. Please reload this page.