Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add the required package source for the “Microsoft.Android.Ref.34” package in MAUI test cases #6235

Open
wants to merge 2 commits into
base: dev
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,15 @@ public static class NuGetConstants
{
public static readonly string NuGetHostName = "nuget.org";
public static readonly string NuGetSymbolHostName = "nuget.smbsrc.net";
public static readonly string AndroidFeedName = "AndroidFeed";

public const string V3FeedUrl = "https://api.nuget.org/v3/index.json";
public const string V2FeedUrl = "https://www.nuget.org/api/v2/";
public static readonly string V2LegacyOfficialPackageSourceUrl = "https://nuget.org/api/v2/";
public static readonly string V2LegacyFeedUrl = "https://go.microsoft.com/fwlink/?LinkID=230477";

public static readonly string V1FeedUrl = "https://go.microsoft.com/fwlink/?LinkID=206669";
public static readonly string AndroidFeedUrl = "https://pkgs.dev.azure.com/dnceng/public/_packaging/darc-pub-dotnet-android-a8cd27e4/nuget/v3/index.json";

/// <summary>
/// NuGet.org gallery Url used as a source display name and as a default "id" when storing nuget.org API key.
Expand Down
2 changes: 2 additions & 0 deletions src/NuGet.Core/NuGet.Configuration/PublicAPI.Shipped.txt
Original file line number Diff line number Diff line change
Expand Up @@ -533,6 +533,7 @@ static readonly NuGet.Configuration.NuGetConstants.ManifestSymbolsExtension -> s
static readonly NuGet.Configuration.NuGetConstants.NuGetHostName -> string!
static readonly NuGet.Configuration.NuGetConstants.NuGetSolutionSettingsFolder -> string!
static readonly NuGet.Configuration.NuGetConstants.NuGetSymbolHostName -> string!
static readonly NuGet.Configuration.NuGetConstants.AndroidFeedName -> string!
static readonly NuGet.Configuration.NuGetConstants.PackageExtension -> string!
static readonly NuGet.Configuration.NuGetConstants.PackageReferenceFile -> string!
static readonly NuGet.Configuration.NuGetConstants.PackageSpecFileName -> string!
Expand All @@ -541,6 +542,7 @@ static readonly NuGet.Configuration.NuGetConstants.ReadmeFileName -> string!
static readonly NuGet.Configuration.NuGetConstants.SnupkgExtension -> string!
static readonly NuGet.Configuration.NuGetConstants.SymbolsExtension -> string!
static readonly NuGet.Configuration.NuGetConstants.V1FeedUrl -> string!
static readonly NuGet.Configuration.NuGetConstants.AndroidFeedUrl -> string!
static readonly NuGet.Configuration.NuGetConstants.V2LegacyFeedUrl -> string!
static readonly NuGet.Configuration.NuGetConstants.V2LegacyOfficialPackageSourceUrl -> string!
static readonly NuGet.Configuration.OwnersItem.OwnersListSeparator -> char
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ public async Task InstallPackageForPRInPMC(ProjectTemplate projectTemplate)
var v100 = "1.0.0";
await CommonUtility.CreatePackageInSourceAsync(simpleTestPathContext.PackageSource, packageName, v100);
simpleTestPathContext.Settings.AddSource(NuGetConstants.NuGetHostName, NuGetConstants.V3FeedUrl);
simpleTestPathContext.Settings.AddSource(NuGetConstants.AndroidFeedName, NuGetConstants.AndroidFeedUrl);

using (var testContext = new ApexTestContext(VisualStudio, projectTemplate, Logger, simpleTestPathContext: simpleTestPathContext))
{
Expand Down Expand Up @@ -148,6 +149,7 @@ public async Task UpdatePackageForPRInPMC(ProjectTemplate projectTemplate)
await CommonUtility.CreatePackageInSourceAsync(simpleTestPathContext.PackageSource, packageName, v100);
await CommonUtility.CreatePackageInSourceAsync(simpleTestPathContext.PackageSource, packageName, v200);
simpleTestPathContext.Settings.AddSource(NuGetConstants.NuGetHostName, NuGetConstants.V3FeedUrl);
simpleTestPathContext.Settings.AddSource(NuGetConstants.AndroidFeedName, NuGetConstants.AndroidFeedUrl);

using (var testContext = new ApexTestContext(VisualStudio, projectTemplate, Logger, simpleTestPathContext: simpleTestPathContext))
{
Expand Down Expand Up @@ -187,6 +189,7 @@ public async Task UninstallPackageForPRInPMC(ProjectTemplate projectTemplate)

await CommonUtility.CreatePackageInSourceAsync(simpleTestPathContext.PackageSource, PackageName, v100);
simpleTestPathContext.Settings.AddSource(NuGetConstants.NuGetHostName, NuGetConstants.V3FeedUrl);
simpleTestPathContext.Settings.AddSource(NuGetConstants.AndroidFeedName, NuGetConstants.AndroidFeedUrl);

using (var testContext = new ApexTestContext(VisualStudio, projectTemplate, Logger, simpleTestPathContext: simpleTestPathContext))
{
Expand Down