Fix SHFB documentation build failure on MSBuild 18.x (VS 2026 runners)#30
Merged
Merged
Conversation
….shfbproj Agent-Logs-Url: https://github.com/Shane32/EPPlus/sessions/50db3cd1-c07c-43a1-a3f0-77a990ef2fe8 Co-authored-by: Shane32 <6377684+Shane32@users.noreply.github.com>
Copilot created this pull request from a session on behalf of
Shane32
May 6, 2026 02:48
View session
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
SHFB 2022.8.14.1's
BuildHelptask 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 emptyPropertyGroup— soSHFBSchemaVersionis missing and the build fails withBHT0002: 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.