Skip to content

Depend on SDK Nuget packages - #7

Merged
Jakub Janaszkiewicz (JakuJ) merged 8 commits into
masterfrom
oss-restructuring
Aug 20, 2026
Merged

Depend on SDK Nuget packages#7
Jakub Janaszkiewicz (JakuJ) merged 8 commits into
masterfrom
oss-restructuring

Conversation

@JakuJ

Copy link
Copy Markdown
Contributor

No description provided.

Game assemblies are already loaded in the game process at runtime, so
copying them into a build output is wasted space and risks shipping a
reference assembly into the game, where a body-less assembly would fail
confusingly under Mono.

Private="false" on every reference whose HintPath points at a Game
folder. Verified against the mod template: 15 game assemblies were being
copied into ExampleMod/bin, now zero.
Replaces the <Reference> items pointing at Dependencies/Game with a
single PackageReference to reference-only assemblies, and deletes the
folder: 54 game DLLs, 91 MB, that no project reads any more.

The refs are API surface with no method bodies, used at compile time
only. The real assemblies are already loaded in the game process, so
nothing changes at runtime and nothing is shipped with a mod.
The UseSdkProjectReferences=true branch used hardcoded ..\..\ paths that
assumed the mods lived inside wukong-csharp-mod as submodules. They now go
through $(WukongSdkRoot) and $(CoreSdkRoot), defaulted to a side-by-side
checkout and overridable by an uberrepo.

Both modes verified: package references by default, SDK sources when
UseSdkProjectReferences=true.
@JakuJ
Jakub Janaszkiewicz (JakuJ) merged commit 9d1ea45 into master Aug 20, 2026
1 check passed
@JakuJ
Jakub Janaszkiewicz (JakuJ) deleted the oss-restructuring branch August 20, 2026 13:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant