SMAPI icon indicating copy to clipboard operation
SMAPI copied to clipboard

Fails to load DLL due to Grpc.AspNetCore dependency

Open wellcoming opened this issue 2 months ago • 2 comments

Describe the bug The mod is not being loaded by SMAPI. The SMAPI log indicates that the mod's DLL file could not be loaded. This issue appears to be specifically caused by the Grpc.AspNetCore dependency. It has been confirmed that using other dependencies in the mod project does not cause this problem, isolating the issue to Grpc.AspNetCore or how SMAPI interacts with it.

To Reproduce Steps to reproduce the behavior:

  1. Create a SMAPI mod project.
  2. Add the <PackageReference Include="Grpc.AspNetCore" Version="2.71.0" /> to the mod's .csproj file.
  3. Write code which using Grpc.AspNetCore
public override void Entry(IModHelper helper) {
    var builder = WebApplication.CreateBuilder();
}
  1. Build the mod and run.
  2. Observe the SMAPI console output, which will show that the mod has been skipped.

Expected behavior The mod should be loaded successfully by SMAPI, even with the Grpc.AspNetCore package reference included, just as it does with other dependencies.

Log file Here is the relevant part of the SMAPI log:

[SMAPI]    Skipped mods
[SMAPI]    --------------------------------------------------
[SMAPI]       These mods could not be added to your game.

[SMAPI]       - JunimoRPC 1.0.0 because its DLL couldn't be loaded.

A full log can be provided if necessary.

wellcoming avatar Oct 06 '25 15:10 wellcoming

Yep, can you post your SMAPI log after it happens? The log has technical info about why it couldn't be loaded.

Pathoschild avatar Oct 16 '25 01:10 Pathoschild

Yep, can you post your SMAPI log after it happens? The log has technical info about why it couldn't be loaded.

logs here minimum-project.zip

wellcoming avatar Nov 10 '25 11:11 wellcoming