Build CvGameCoreDLL with FastBuild

VerifiedSafe

Builds the CvGameCoreDLL via FastBuild. Use for compile checks, rebuilds, deployments, and diagnosing LNK2001 link errors.

Sby Skills Guide Bot
DevelopmentIntermediate
8/30/2026
Claude Code
#build-system#fastbuild#cpp#dll#link-errors

Recommended for

Automated summary

Drives compilation of the S2S CvGameCoreDLL through the FastBuild wrapper Tools/_Build.ps1, covering compile checks, clean rebuilds, deployment into Assets/, and LNK2001 link-error diagnosis.

Strengths

  • Clearly explains the config + verb composition (clean, build, rebuild, deploy) and when to pick each
  • Explicitly separates the fast incremental compile check (~30s) from a full multi-minute rebuild
  • Documents the LNK2001 gotcha: Sources/fbuild.bff, not the .vcxproj, decides what FastBuild compiles
  • Mentions the nostop modifier for continuing past a first failure to surface errors across more translation units

Limitations

  • Highly specific to the S2S Windows/PowerShell layout (Sources/, Tools/, Assets/) and not reusable elsewhere
  • Assumes Tools/_Build.ps1, XmlValidator.exe and verify-python-callbacks.py already exist
  • Does not cover debugging C++ compile errors other than LNK2001
When to use it

Use it whenever you need to compile or re-verify the DLL after editing Sources/, run a clean rebuild, deploy the DLL into the game, or track down a LNK2001 error.

When not to use it

Avoid it for projects without FastBuild or the S2S Sources/ tree, or for build tasks unrelated to the DLL such as XML/Python content alone.

Security analysis

Safe
Quality score88/100

The skill only documents running a local FastBuild wrapper, building, clean rebuilding, and copying the resulting DLL/PDB into Assets/. It does not fetch or execute remote code, delete files, exfiltrate secrets, or disable safety mechanisms. The use of PowerShell -ExecutionPolicy Bypass is a minor operational detail but is limited to a repo-local build script.

No concerns found

How this analysis is made

Examples

Quick compile check
I just edited a file in Sources/ — run an Assert build to check it still compiles.
Clean rebuild + deploy
Do a clean Release rebuild of the DLL and deploy it into Assets/.
Diagnose LNK2001
FastBuild fails with LNK2001 unresolved external symbol after I added a new directory under Sources/, even though the IDE compiles fine. How do I fix it?

name: build-dll description: Build the S2S CvGameCoreDLL via FastBuild. Use when the user wants to compile the DLL, run a compile check after editing Sources/, do a clean rebuild, or deploy the built DLL into Assets/. Also use to diagnose LNK2001 link errors.

Build the CvGameCoreDLL

The build is driven by Tools/_Build.ps1 (a FastBuild wrapper). Always run it from the Sources/ directory.

powershell.exe -NoProfile -ExecutionPolicy Bypass -File "../Tools/_Build.ps1" <Config> <verb> [<verb> ...]
  • Configs: Assert, Debug, Release, FinalRelease, Testing. Output → Build/<Config>/CvGameCoreDLL.dll (+ .pdb).
  • Verbs (composable, in order): clean, build (incremental), rebuild (clean+build), deploy (xcopy DLL/PDB into Assets/).
  • Modifier — nostop (opt-in): passes FastBuild's -nostoponerror so the build keeps going after a failed object instead of stopping at the first, reporting across far more translation units in one pass. Position in the argument list does not matter (Assert build nostop); the MakeDLL*.bat shortcuts accept it too.

Choosing what to run

  • Quick compile check after an edit (the default for verifying a change builds): Assert build. Incremental link is ~30s.
  • Clean rebuild: Assert rebuild (or another config). Several minutes (~25 unity batches × ~30s).
  • Build + install into the game: add deploy, e.g. Release rebuild deploy.
  • The Tools/MakeDLL*.bat shortcuts always do a full rebuild deploy — don't use them for an iterative compile-check loop.

After the build

  • C++ code must stay C++2003-only (no auto, lambdas, range-for, nullptr, override). See Sources/AGENTS.md.
  • If the change touched XML/Python interfaces, validate: Tools/XmlValidator.exe -a and Tools/XMLTools/verify-python-callbacks.py.

Troubleshooting LNK2001

If FastBuild fails at link with LNK2001: unresolved external symbol (but the IDE compiles fine), a new Sources/<Dir>/ is probably missing from the build's source-of-truth. Sources/fbuild.bff — not the .vcxproj — decides what FastBuild compiles. Fix:

  1. Add $SOURCE_DIR$/<Dir> to the .UnityInputPath array in Sources/fbuild.bff (~line 201).
  2. Add the files to Sources/S2S.vcxproj and …vcxproj.filters (IDE display only).

Sources/Repos/ and Sources/Utils/ are reference examples of a correctly wired subdirectory.

From the file to a first result

The download contains exactly the content displayed on this page. This copy may differ from the latest version in the source repository.

View the source and supporting files

This download contains SKILL.md only. Any scripts, references, templates and dependencies are not included. Get the required files from the source, preserving their directory structure, before continuing.

1. Download the file

Download SKILL.md

From the root of a test project, save the file as .skill-downloads/build-cvgamecoredll-with-fastbuild-mtfbwk3t/SKILL.md, or use the command below. This folder is for inspecting the skill before installation.

Command for macOS/Linux or WSL: requires a POSIX shell and curl. On Windows without WSL, use the download button and create the folder manually.

mkdir -p '.skill-downloads/build-cvgamecoredll-with-fastbuild-mtfbwk3t' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/build-cvgamecoredll-with-fastbuild-mtfbwk3t/download' --output '.skill-downloads/build-cvgamecoredll-with-fastbuild-mtfbwk3t/SKILL.md.part' && mv '.skill-downloads/build-cvgamecoredll-with-fastbuild-mtfbwk3t/SKILL.md.part' '.skill-downloads/build-cvgamecoredll-with-fastbuild-mtfbwk3t/SKILL.md'

2. Check prerequisites

Read SKILL.md before using it. If it references scripts or external services, inspect them and prepare the required access in your test environment.

No recognized prerequisites section in this file. This does not mean it is self-contained: libraries, tools and access requirements may be mentioned elsewhere in the content or source repository.

The platforms on this page are catalog indications. The paths below follow tool documentation; they do not prove this skill has been run in those tools. No minimum tool version is confirmed for this listing.

3. Load the skill

After inspection, copy the complete folder into your project using one of the commands below, then open a new tool session. The command stops if a folder with the same name already exists: compare the files before replacing it.

Claude Code
test -f '.skill-downloads/build-cvgamecoredll-with-fastbuild-mtfbwk3t/SKILL.md' && test -s '.skill-downloads/build-cvgamecoredll-with-fastbuild-mtfbwk3t/SKILL.md' && mkdir -p '.claude/skills' && test ! -e '.claude/skills/build-dll' && cp -R '.skill-downloads/build-cvgamecoredll-with-fastbuild-mtfbwk3t' '.claude/skills/build-dll'

OpenSkills

OpenSkills must already be installed. The local install/read procedure is checked with OpenSkills 1.5.0, which requires Node.js ≥ 20.6.0. Catalog slugs are not resolved automatically.

Official OpenSkills installation
openskills install './.skill-downloads/build-cvgamecoredll-with-fastbuild-mtfbwk3t'

openskills read 'build-cvgamecoredll-with-fastbuild-mtfbwk3t'

Reading should display the installed file content and its base directory. It does not run the skill or install its dependencies.

For an agent that reads AGENTS.md, then sync the index. This command changes AGENTS.md: review the diff before using it.

openskills sync

Manual method or another tool: attach SKILL.md to a conversation, or open it in an agent that can read files. Include any required supporting resources. No universal folder is recognized by every tool.

4. Try a first task

Use a short, synthetic input: an API endpoint, a small document or an interface brief. In a new conversation, attach the file or give the agent its path, then adapt this request:

Read .skill-downloads/build-cvgamecoredll-with-fastbuild-mtfbwk3t/SKILL.md and apply its instructions to this example: [describe a test input]. Identify any missing files, dependencies or access. Produce the result requested by the skill without inventing data or running unreviewed scripts.

Expected result: output matching the skill instructions, or a precise list of missing prerequisites. A read confirmation alone does not validate a first use. If an external resource is unavailable, that path remains untested.

Related skills