The consumer project is required to have a ModID property defined in the csproj file for correct source generation.
ModID
csproj
Consider using the template csproj file setup for automatic reading of ModID from the modinfo.json
modinfo.json
Expected csproj content:
<PropertyGroup> <ModID>mymodid</ModID> </PropertyGroup> <ItemGroup> <CompilerVisibleProperty Include="ModID" /> </ItemGroup>
There was an error while loading. Please reload this page.