Change NuGet.Config to be independent from global NuGet.Config (#20168) (#20169)

* Clear all package source options
* Move Azure .NET 10 transport feed from RestoreAdditionalProjectSources to NuGet.Config
This commit is contained in:
Alexander Prokhorov
2025-12-01 19:03:02 +03:00
committed by GitHub
parent 406925a344
commit 5f9d156ad4
2 changed files with 13 additions and 2 deletions
+13
View File
@@ -4,5 +4,18 @@
<packageSources>
<clear />
<add key="api.nuget.org" value="https://api.nuget.org/v3/index.json" />
<add key="azure-dotnet10-transport" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet10-transport/nuget/v3/index.json" />
</packageSources>
<packageSourceMapping>
<clear />
</packageSourceMapping>
<auditSources>
<clear />
</auditSources>
<disabledPackageSources>
<clear />
</disabledPackageSources>
<fallbackPackageFolders>
<clear />
</fallbackPackageFolders>
</configuration>
-2
View File
@@ -9,8 +9,6 @@
<TargetFramework>$(AvsCurrentTargetFramework)</TargetFramework>
<!-- See https://github.com/nuke-build/nuke/issues/818 -->
<EnableUnsafeBinaryFormatterSerialization>true</EnableUnsafeBinaryFormatterSerialization>
<!-- Necessary for Microsoft.DotNet.ApiDiff.Tool -->
<RestoreAdditionalProjectSources>https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet10-transport/nuget/v3/index.json</RestoreAdditionalProjectSources>
</PropertyGroup>
<Import Project="..\build\JetBrains.dotMemoryUnit.props" />