Commit 478d56c
Exclude tests/**/TestFixtures/**/*.csproj from Arcade build enumeration
The Stabilization Check job invokes Arcade's pack pipeline, which
enumerates ProjectToBuild from `tests/**/*.csproj` (eng/Build.props
line 69). That enumeration was picking up the static-analyzer fixture
projects under tests/Infrastructure.Tests/TestSelector/TestFixtures/.
Those .csproj files are deliberate test fixtures consumed as text by
TestSelector's analyzer tests (IgnorePathFilterTests,
NuGetDependentTestDetectorTests, etc.) — they're never meant to be
built. Their adjacent Directory.Build.targets neuters Build/Rebuild/
Restore/Pack/Test as no-ops, which is enough for `build.sh -build`
but not for `build.sh -pack`: the NuGet Pack target still attempts
to read the assembly output (e.g. ConditionalPackableProject.dll) and
fails with NU5026 because Build was a no-op.
Filter the fixtures out of the test-project enumeration so Arcade
never tries to build or pack them. The TestSelector tool's own
testProjectPatterns config already excludes `tests/**/TestFixtures/**`
from its discovery, so this brings the build infrastructure in line
with the same convention.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent b62d87a commit 478d56c
1 file changed
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
69 | | - | |
| 69 | + | |
| 70 | + | |
70 | 71 | | |
71 | 72 | | |
72 | 73 | | |
| |||
0 commit comments