Skip to content

Fails to load DLL due to Grpc.AspNetCore dependency #992

@wellcoming

Description

@wellcoming

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions