Commit 8d4990d
Skip PNSE doc-source P2P when local targeting pack is unavailable
When UseCompilerGeneratedDocXmlFile is true (the default) and a library
is a PNSE assembly, intellisense.targets adds a self-referencing
ProjectReference with SetTargetFramework=net11.0 to pull enriched XML
docs from the non-PNSE sibling build. In the NET481 build leg the local
targeting pack (FrameworkList.xml) is never produced, so the inner
net11.0 build fails with:
The shared framework must be built before the local targeting pack
can be consumed.
Guard the AddProjectReferenceToPNSEDocSource target with an Exists check
on the same FrameworkList.xml sentinel that targetingpacks.targets
already uses. When the file is absent the target is skipped and the PNSE
assembly builds without doc enrichment, which is the expected behavior
for partial-build configurations like the NET481 leg.
Fixes #127007
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent 81d6754 commit 8d4990d
1 file changed
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
122 | 122 | | |
123 | 123 | | |
124 | 124 | | |
| 125 | + | |
| 126 | + | |
125 | 127 | | |
126 | 128 | | |
127 | 129 | | |
128 | 130 | | |
129 | | - | |
| 131 | + | |
| 132 | + | |
130 | 133 | | |
131 | 134 | | |
132 | 135 | | |
| |||
0 commit comments