Skip to content

Commit fccc859

Browse files
ruiren_microsoftCopilot
andcommitted
Fix C# samples CI: restore local-sdk NuGet source
The 'local-sdk' source (../../local-packages) was removed in PR #573 and the ORT-Nightly feed was removed in PR #633, leaving only nuget.org. Since Microsoft.AI.Foundry.Local is not published to nuget.org, all C# sample builds fail during NuGet restore. Restore the local-sdk source with package source mapping so the CI 'Build SDK from source' step output is discoverable by sample builds. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 8e131a7 commit fccc859

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

samples/cs/nuget.config

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,15 @@
33
<packageSources>
44
<clear />
55
<add key="nuget.org" value="https://api.nuget.org/v3/index.json" />
6+
<add key="local-sdk" value="../../local-packages" />
67
</packageSources>
8+
<packageSourceMapping>
9+
<packageSource key="nuget.org">
10+
<package pattern="*" />
11+
</packageSource>
12+
<packageSource key="local-sdk">
13+
<package pattern="Microsoft.AI.Foundry.Local" />
14+
<package pattern="Microsoft.AI.Foundry.Local.WinML" />
15+
</packageSource>
16+
</packageSourceMapping>
717
</configuration>

0 commit comments

Comments
 (0)