From ee24d7b1671683942b364ae456a415faeabc9236 Mon Sep 17 00:00:00 2001 From: Adam Sitnik Date: Thu, 8 Dec 2022 16:03:52 +0100 Subject: [PATCH] NuGet.org should be the default feed for NativeAOT 7.0 ILCompiler package (#2221) --- .../Toolchains/NativeAot/NativeAotToolchain.cs | 4 ++-- .../Toolchains/NativeAot/NativeAotToolchainBuilder.cs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/BenchmarkDotNet/Toolchains/NativeAot/NativeAotToolchain.cs b/src/BenchmarkDotNet/Toolchains/NativeAot/NativeAotToolchain.cs index c20cd2e3ca..0beeff9627 100644 --- a/src/BenchmarkDotNet/Toolchains/NativeAot/NativeAotToolchain.cs +++ b/src/BenchmarkDotNet/Toolchains/NativeAot/NativeAotToolchain.cs @@ -14,10 +14,10 @@ public class NativeAotToolchain : Toolchain .ToToolchain(); /// - /// compiled as net7.0, targets latest NativeAOT build from the .NET 7 feed: https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet7/nuget/v3/index.json + /// compiled as net7.0, targets latest NativeAOT build from the NuGet.org feed /// public static readonly IToolchain Net70 = CreateBuilder() - .UseNuGet("", "https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet7/nuget/v3/index.json") + .UseNuGet("", "https://api.nuget.org/v3/index.json") .TargetFrameworkMoniker("net7.0") .ToToolchain(); diff --git a/src/BenchmarkDotNet/Toolchains/NativeAot/NativeAotToolchainBuilder.cs b/src/BenchmarkDotNet/Toolchains/NativeAot/NativeAotToolchainBuilder.cs index f1dc1e220e..4d37882007 100644 --- a/src/BenchmarkDotNet/Toolchains/NativeAot/NativeAotToolchainBuilder.cs +++ b/src/BenchmarkDotNet/Toolchains/NativeAot/NativeAotToolchainBuilder.cs @@ -26,9 +26,9 @@ public class NativeAotToolchainBuilder : CustomDotNetCliToolchainBuilder /// Based on https://github.com/dotnet/runtimelab/blob/d0a37893a67c125f9b0cd8671846ff7d867df241/samples/HelloWorld/README.md#add-corert-to-your-project /// /// the version of Microsoft.DotNet.ILCompiler which should be used. The default is empty which maps to latest version. - /// url to NuGet feed, The default is: "https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet7/nuget/v3/index.json" + /// url to NuGet feed, The default is: "https://api.nuget.org/v3/index.json" [PublicAPI] - public NativeAotToolchainBuilder UseNuGet(string microsoftDotNetILCompilerVersion = "", string nuGetFeedUrl = "https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet7/nuget/v3/index.json") + public NativeAotToolchainBuilder UseNuGet(string microsoftDotNetILCompilerVersion = "", string nuGetFeedUrl = "https://api.nuget.org/v3/index.json") { ilCompilerVersion = microsoftDotNetILCompilerVersion;