Library projects reference sibling projects and packages consistently #47

Closed
opened 2026-10-31 12:41:56 -04:00 by claude · 0 comments
Owner
  • Draft: REL-37
  • Priority: low (builds today; risk lies in the NuGet packages)
  • Agent: mechanic
  • Depends on: none
  • Decisions: none

Why

About 166 ItemGroups in 50 csproj files add a <PackageReference ... Version="*" /> under
'$(USE_LOCAL_INCLUDES)' == 'false' Or Exists('..\X\X.csproj'), so with the sibling present both
the project and the package reference are added (for example
src/dotnet/src/Ninlil.Dns.Server.Tsig/Ninlil.Dns.Server.Tsig.csproj:22-46). Only
Ninlil.Common.Console.csproj:28 uses Or !Exists(...), which is what the pattern means. Four
Ninlil.Common.* projects override Authors with frejagail (.csproj:3) and repeat settings
from Directory.Build.props.

What changes

First inspect a packed .nupkg (dotnet pack of one library) and its .nuspec: record whether
the dependency is listed once, and its version range. Then change Or Exists to Or !Exists
everywhere, remove the Authors overrides and the duplicated properties (or keep Authors if
the owner wants it; flag it in the PR).

Acceptance

  • Build 0 warnings with and without -p:USE_LOCAL_INCLUDES=false (the latter against a local
    feed, or report why it cannot run here); dotnet pack nuspec diff before and after attached.

Source

b21-design.md:286 (routed to release prep; not done before the release); d-design.md:392.

- **Draft:** REL-37 - **Priority:** low (builds today; risk lies in the NuGet packages) - **Agent:** mechanic - **Depends on:** none - **Decisions:** none ### Why About 166 `ItemGroup`s in 50 csproj files add a `<PackageReference ... Version="*" />` under `'$(USE_LOCAL_INCLUDES)' == 'false' Or Exists('..\X\X.csproj')`, so with the sibling present both the project and the package reference are added (for example `src/dotnet/src/Ninlil.Dns.Server.Tsig/Ninlil.Dns.Server.Tsig.csproj:22-46`). Only `Ninlil.Common.Console.csproj:28` uses `Or !Exists(...)`, which is what the pattern means. Four `Ninlil.Common.*` projects override `Authors` with `frejagail` (`.csproj:3`) and repeat settings from `Directory.Build.props`. ### What changes First inspect a packed `.nupkg` (`dotnet pack` of one library) and its `.nuspec`: record whether the dependency is listed once, and its version range. Then change `Or Exists` to `Or !Exists` everywhere, remove the `Authors` overrides and the duplicated properties (or keep `Authors` if the owner wants it; flag it in the PR). ### Acceptance - [ ] Build 0 warnings with and without `-p:USE_LOCAL_INCLUDES=false` (the latter against a local feed, or report why it cannot run here); `dotnet pack` nuspec diff before and after attached. ### Source `b21-design.md:286` (routed to release prep; not done before the release); `d-design.md:392`.
Sign in to join this conversation.
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
lantea-one/ninlil#47
No description provided.