Skip to content

fix(build): clean Release build from GitHub source ZIP#5

Merged
Chookees merged 1 commit into
mainfrom
cursor/fix-zip-build-482e
Jul 15, 2026
Merged

fix(build): clean Release build from GitHub source ZIP#5
Chookees merged 1 commit into
mainfrom
cursor/fix-zip-build-482e

Conversation

@Chookees

Copy link
Copy Markdown
Owner

Summary

Fixes the Release build failure when opening the GitHub source ZIP (no .git folder), as in Downloads\UP_town_Funcs-main.

Root causes

  1. Error: FunctionFoundry.Data.Sample — unused using System.Text; as IDE0005. Sample NoWarn did not apply on Windows because path matching used broken \\samples\\ checks.
  2. Warnings: SourceLink/Microsoft.Build.Tasks.Git when no git repository exists (ZIP download).

Fix

  • Disable SourceLink / SCM queries when .git is absent
  • Detect samples/tests/benchmarks via normalized / paths and .Sample / .Tests / .Benchmarks project name suffixes
  • Remove unused using in Data sample

Verified with a local archive-style tree (no .git): dotnet build -c Release0 warnings, 0 errors.

Open in Web Open in Cursor 

Disable SourceLink when .git is missing (GitHub source archives), detect
samples/tests/benchmarks on Windows via normalized paths and project-name
suffixes, and remove an unused using that failed Data.Sample under
TreatWarningsAsErrors.

Co-authored-by: Artur B. <Chookees@users.noreply.github.com>
@Chookees
Chookees marked this pull request as ready for review July 15, 2026 07:14
@Chookees
Chookees merged commit bd985ba into main Jul 15, 2026
2 checks passed
@Chookees
Chookees deleted the cursor/fix-zip-build-482e branch July 15, 2026 07:14
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