Commit a863f87
fix(pack): analyzer DLL path on clean machines
`mur pack-local` was failing on a freshly-cloned machine with:
NuGet.Build.Tasks.Pack.targets(222,5): error
Could not find a part of the path
'...\src\Reactor.Analyzers\bin\Debug\netstandard2.0\'
Root cause: Reactor.csproj packs the analyzer + localization-generator
DLLs into the framework nupkg via `<None Include>` paths that hardcode
`bin\$(Configuration)\netstandard2.0\` — no `$(Platform)` segment. The
two projects are also `<ProjectReference>`s, so when `dotnet pack` is
invoked with `-p:Platform=x64` (or ARM64) the inherited Platform
cascades to the transitive analyzer build and the output actually
lands at `bin\x64\Debug\netstandard2.0\`. Pack then looks at the
platform-less path, doesn't find the file, and fails.
The bug was masked on dev machines by any prior AnyCPU build (VS
solution, bare `dotnet build src/Reactor.Analyzers`, etc.) that left
a stale DLL at the platform-less path.
Fix: set `AppendPlatformToOutputPath=false` on both analyzer csprojs.
These are netstandard2.0 IL with no platform-specific code, so output
should always land at `bin\$(Configuration)\netstandard2.0\` regardless
of what Platform the parent pack invocation inherited.
Reproduced + verified locally with a wiped bin/obj tree.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 99d4b1d commit a863f87
2 files changed
Lines changed: 17 additions & 0 deletions
File tree
- src
- Reactor.Analyzers
- Reactor.Localization.Generator
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
15 | 26 | | |
16 | 27 | | |
17 | 28 | | |
| |||
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
12 | 18 | | |
13 | 19 | | |
14 | 20 | | |
| |||
0 commit comments