ModShardTeam / ModShardTeam/ModShardLauncher

[BUG] Bug report: Cannot use some system libraries or nuget packages

Open
#133 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C#
Stars
55
Forks
13
PR merge metrics
No merged PRs in 30d

Description

Describe the Bug :

I use System.Text.Json and the NuGet package CsvHelper to process some data files for my mods, but the mod launcher cannot build the sml file.

Steps To Reproduce :

  • Create a mod project using ModShardLauncher.Template
  • Use System.Text.Json or code from NuGet packages
  • dotnet build build the project normally
  • Use the launcher to build the project to sml fie, it failed with this error:
[22:37:55 ERR] Cannot understand type System.Text.Json of variable System.Text.Json
[22:37:55 ERR] Cannot understand type System.Text.Json of variable Json
[22:37:55 ERR] Cannot understand type CsvHelper of variable CsvHelper
[22:37:55 ERR] Cannot understand type CsvHelper.Configuration of variable CsvHelper.Configuration
[22:37:55 ERR] Cannot understand type CsvHelper of variable CsvHelper
[22:37:55 ERR] Cannot understand type CsvHelper.Configuration of variable Configuration
[22:37:55 ERR] Cannot understand type ? of variable JsonSerializer
[22:37:55 ERR] Cannot understand type CsvReader of variable var
[22:37:55 ERR] Cannot understand type CsvReader of variable csv
[22:37:55 ERR] Cannot understand type ? of variable Context
[22:37:55 ERR] Cannot understand type CsvReader of variable csv
[22:37:55 ERR] Cannot understand type CsvHelper.Configuration of variable CsvHelper.Configuration
[22:37:55 ERR] Cannot understand type CsvHelper of variable CsvHelper
[22:37:55 ERR] Cannot understand type CsvHelper.Configuration of variable Configuration

Expected Behavior :

The launcher can build the project to sml file.

Additional Information :

  • MSL Version : 0.13.2.0

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the failure with a project created from ModShardLauncher.Template, first confirming that dotnet build succeeds and the launcher build fails when System.Text.Json or CsvHelper is used. Trace the launcher’s project-to-SML build path and identify where external namespaces and types are rejected; done means the launcher builds the reproduced project successfully.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
build-system, tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.