chore: fix nuget package resolution for local windows builds

- Add NuGet.Config with explicit globalPackagesFolder using %USERPROFILE%
  to prevent Docker-generated obj/ files (with /root/.nuget/packages/)
  from breaking Rider/local dotnet builds
- Restore Microsoft.AspNetCore.OpenApi to Directory.Packages.props
  (was accidentally removed; required by Web project)

Ref: IT-628

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
Anatolii Grynchuk
2026-05-02 03:20:53 +03:00
parent 00ee5b8add
commit 5f09f7f4fe
2 changed files with 10 additions and 1 deletions
+9
View File
@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<config>
<add key="globalPackagesFolder" value="%USERPROFILE%\.nuget\packages" />
</config>
<packageSources>
<add key="nuget.org" value="https://api.nuget.org/v3/index.json" protocolVersion="3" />
</packageSources>
</configuration>