From 476c193aa26f3cbf8fc360726a60acd9a62eb57c Mon Sep 17 00:00:00 2001 From: Soar Qin Date: Tue, 29 Sep 2026 22:40:20 +0800 Subject: [PATCH] build: exclude nested test artifacts from parent projects --- AGENTS.md | 2 +- Directory.Build.props | 1 + LiveStreamAssist/LiveStreamAssist.csproj | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/AGENTS.md b/AGENTS.md index d74328a..403ab97 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -20,7 +20,7 @@ ## Build -- `Directory.Build.props` supplies common frameworks, BepInEx packages, game references, warning policy, and the `UpdateGameDlls` dependency. `Directory.Build.targets` defines `ZipMod` and `CopyToParentPackage`. +- `Directory.Build.props` supplies common frameworks, BepInEx packages, game references, warning policy, and the `UpdateGameDlls` dependency. `Directory.Build.targets` defines `ZipMod` and `CopyToParentPackage`. Exclude nested test-tool `bin` and `obj` artifacts from parent-mod item globs, including explicit `None` includes, while keeping test sources visible. - Normal validation: `dotnet build /.csproj -c Release --no-restore`. If NuGet assets are missing, run `dotnet restore /.csproj` before retrying the build. - Keep temporary verification projects under the mod's excluded root `obj/` directory. Remove abandoned generated outputs when their source project is gone so the SDK source glob cannot compile them into the mod. - Refresh game references explicitly with `dotnet build UpdateGameDlls/UpdateGameDlls.csproj`; the script publicizes installed DLLs in staging and compares generated content hashes so checkout timestamps cannot hide game updates. Missing DSP or the publicizer is a warning, not a build failure. If `assembly-publicizer` requires an unavailable .NET runtime, retry with process-local `DOTNET_ROLL_FORWARD=Major` rather than changing global runtime settings. Verify discovery warnings against the actual configured library directories and original managed DLLs; absence from the VDF `apps` list alone does not establish that DSP is uninstalled. diff --git a/Directory.Build.props b/Directory.Build.props index b4cc6d3..c9420bd 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -11,6 +11,7 @@ 0618 none false + $(DefaultItemExcludesInProjectFolder);tools/**/bin/**;tools/**/obj/** https://nuget.bepinex.dev/v3/index.json false diff --git a/LiveStreamAssist/LiveStreamAssist.csproj b/LiveStreamAssist/LiveStreamAssist.csproj index c169e87..a915348 100644 --- a/LiveStreamAssist/LiveStreamAssist.csproj +++ b/LiveStreamAssist/LiveStreamAssist.csproj @@ -19,7 +19,7 @@ - +