AyCode.Core/nuget.config

29 lines
1.4 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<!--
Repo-scoped NuGet source declaration. Encodes the workspace-dependency contract from
`.github/copilot-instructions.md` (`@repo.own-dep-repos = []`) and `CONSUMERS.md`
(AyCode.Core is Layer 0 — no upstream repos):
AyCode.Core has NO external repo dependencies. Therefore restore MUST NOT depend
on any machine-level or user-level NuGet feed pointing at a sibling repo's build
output (e.g. Mango.Nop.Core/bin/...). Such feeds, when configured globally on a
developer machine for another repo's workflow, would otherwise be probed during
`dotnet restore` for THIS repo too — and produce NU1301 errors when their paths
don't exist, even though no package from them is actually required.
The `<clear />` element explicitly drops all parent NuGet configurations
(machine-level + user-level + any walk-up Directory-level config) for this repo's
scope. Only `nuget.org` remains, matching the public packages declared in the
csproj files (MessagePack, MemoryPack, Newtonsoft.Json, Microsoft.*).
Determinism: every dev machine + CI agent resolves the same source set. Side
effect-free with respect to other repos sharing the same developer machine — their
own per-repo nuget.config (or lack thereof) is unaffected.
-->
<configuration>
<packageSources>
<clear />
<add key="nuget.org" value="https://api.nuget.org/v3/index.json" />
</packageSources>
</configuration>