Skip to content

Fix SHFB documentation build failure on MSBuild 18.x (VS 2026 runners)#30

Merged
Shane32 merged 1 commit into
masterfrom
copilot/check-test-documentation-workflow
May 6, 2026
Merged

Fix SHFB documentation build failure on MSBuild 18.x (VS 2026 runners)#30
Shane32 merged 1 commit into
masterfrom
copilot/check-test-documentation-workflow

Conversation

Copy link
Copy Markdown

Copilot AI commented May 6, 2026

SHFB 2022.8.14.1's BuildHelp task uses reflection to get the executing MSBuild project instance. On MSBuild 18.x (VS 2026 GitHub runners), ToProjectRootElement() no longer copies project properties — it produces an empty PropertyGroup — so SHFBSchemaVersion is missing and the build fails with BHT0002: Invalid or missing SHFBSchemaVersion. (Upstream: EWSoftware/SHFB#1146)

Changes

  • Doc/EPPlusDoc.shfbproj — adds <AlwaysLoadProject>True</AlwaysLoadProject>, which instructs the SHFB task to skip the reflection path and load the project directly from disk, where all properties are correctly available.

@Shane32 Shane32 marked this pull request as ready for review May 6, 2026 02:53
@Shane32 Shane32 merged commit 22586c5 into master May 6, 2026
2 of 3 checks passed
@Shane32 Shane32 deleted the copilot/check-test-documentation-workflow branch May 6, 2026 02:53
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.

2 participants