ElectroJr / CosmoteerMods

MIT License
0 stars 0 forks source link

cannot access internal class on patch.cs #1

Open REFIRSER2 opened 1 month ago

REFIRSER2 commented 1 month ago

all harmony patch cause this error.

ElectroJr commented 1 month ago

You have to use an assembly publicizer, and then reference the publicised assembly in https://github.com/ElectroJr/CosmoteerMods/blob/main/ResourceSharing/ResourceSharing.csproj in order to access the internal/private classes.

I can't remember what publiciser I used. It might've been https://github.com/BepInEx/BepInEx.AssemblyPublicizer, but you should probably be able to use whichever you prefer.