Browse Source

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
pull/20199/head
Alexander Prokhorov 2 weeks ago
committed by GitHub
parent
commit
5f9d156ad4
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 13
      NuGet.Config
  2. 2
      nukebuild/_build.csproj

13
NuGet.Config

@ -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
nukebuild/_build.csproj

@ -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" />

Loading…
Cancel
Save