Skip to content

Commit

Permalink
NuGet.org should be the default feed for NativeAOT 7.0 ILCompiler pac…
Browse files Browse the repository at this point in the history
…kage (dotnet#2221)
  • Loading branch information
adamsitnik authored Dec 8, 2022
1 parent 5ef855a commit ee24d7b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ public class NativeAotToolchain : Toolchain
.ToToolchain();

/// <summary>
/// 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
/// </summary>
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();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
/// </summary>
/// <param name="microsoftDotNetILCompilerVersion">the version of Microsoft.DotNet.ILCompiler which should be used. The default is empty which maps to latest version.</param>
/// <param name="nuGetFeedUrl">url to NuGet feed, The default is: "https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet7/nuget/v3/index.json"</param>
/// <param name="nuGetFeedUrl">url to NuGet feed, The default is: "https://api.nuget.org/v3/index.json"</param>
[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;

Expand Down

0 comments on commit ee24d7b

Please sign in to comment.