Skip to content

Commit f3d98cf

Browse files
authored
Merge pull request #9317 from NuGet/dev
[ReleasePre][2022.11.22] FI of dev into main
2 parents b28b0e5 + bd8070c commit f3d98cf

14 files changed

Lines changed: 70 additions & 36 deletions

File tree

src/Bootstrap/dist/css/bootstrap.css

Lines changed: 4 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Bootstrap/less/list-group.less

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,3 +128,8 @@ button.list-group-item {
128128
margin-bottom: 0;
129129
line-height: 1.3;
130130
}
131+
132+
ul.list-packages {
133+
list-style-type: none;
134+
padding-left: 0;
135+
}

src/NuGet.Services.DatabaseMigration/NuGet.Services.DatabaseMigration.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@
7474
<PrivateAssets>all</PrivateAssets>
7575
</PackageReference>
7676
<PackageReference Include="NuGet.Build.Tasks.Pack">
77-
<Version>6.0.0</Version>
77+
<Version>6.4.0</Version>
7878
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
7979
<PrivateAssets>all</PrivateAssets>
8080
</PackageReference>

src/NuGet.Services.Entities/NuGet.Services.Entities.csproj

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,11 @@
88
</PropertyGroup>
99

1010
<ItemGroup>
11-
<PackageReference Include="EntityFramework">
12-
<Version>6.4.0-preview3-19553-01</Version>
13-
</PackageReference>
14-
<PackageReference Include="Newtonsoft.Json">
15-
<Version>13.0.1</Version>
16-
</PackageReference>
17-
<PackageReference Include="NuGet.Frameworks">
18-
<Version>6.0.0</Version>
19-
</PackageReference>
11+
<PackageReference Include="EntityFramework" Version="6.4.0-preview3-19553-01" />
12+
<PackageReference Include="Newtonsoft.Json" Version="13.0.1" />
13+
<PackageReference Include="NuGet.Frameworks" Version="6.4.0" />
14+
<!-- This was lifted to a top-level dependency to resolve a Component Governance alert. -->
15+
<PackageReference Include="System.Data.SqlClient" Version="4.8.5" />
2016
</ItemGroup>
2117

2218
<ItemGroup>

src/NuGetGallery.Core/Frameworks/SupportedFrameworks.cs

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,13 @@ public static class SupportedFrameworks
3333
public static readonly NuGetFramework Net60Tizen = new NuGetFramework(FrameworkIdentifiers.NetCoreApp, Version6, "tizen", EmptyVersion);
3434
public static readonly NuGetFramework Net60TvOs = new NuGetFramework(FrameworkIdentifiers.NetCoreApp, Version6, "tvos", EmptyVersion);
3535
public static readonly NuGetFramework Net60Windows = new NuGetFramework(FrameworkIdentifiers.NetCoreApp, Version6, "windows", EmptyVersion);
36+
public static readonly NuGetFramework Net70Android = new NuGetFramework(FrameworkIdentifiers.NetCoreApp, Version7, "android", EmptyVersion);
37+
public static readonly NuGetFramework Net70Ios = new NuGetFramework(FrameworkIdentifiers.NetCoreApp, Version7, "ios", EmptyVersion);
38+
public static readonly NuGetFramework Net70MacOs = new NuGetFramework(FrameworkIdentifiers.NetCoreApp, Version7, "macos", EmptyVersion);
39+
public static readonly NuGetFramework Net70MacCatalyst = new NuGetFramework(FrameworkIdentifiers.NetCoreApp, Version7, "maccatalyst", EmptyVersion);
40+
public static readonly NuGetFramework Net70Tizen = new NuGetFramework(FrameworkIdentifiers.NetCoreApp, Version7, "tizen", EmptyVersion);
41+
public static readonly NuGetFramework Net70TvOs = new NuGetFramework(FrameworkIdentifiers.NetCoreApp, Version7, "tvos", EmptyVersion);
42+
public static readonly NuGetFramework Net70Windows = new NuGetFramework(FrameworkIdentifiers.NetCoreApp, Version7, "windows", EmptyVersion);
3643
public static readonly NuGetFramework NetCore = new NuGetFramework(FrameworkIdentifiers.NetCore, EmptyVersion);
3744
public static readonly NuGetFramework NetMf = new NuGetFramework(FrameworkIdentifiers.NetMicro, EmptyVersion);
3845
public static readonly NuGetFramework UAP = new NuGetFramework(FrameworkIdentifiers.UAP, EmptyVersion);
@@ -51,7 +58,9 @@ static SupportedFrameworks()
5158
MonoAndroid, MonoMac, MonoTouch,
5259
Native,
5360
Net11, Net2, Net35, Net4, Net403, Net45, Net451, Net452, Net46, Net461, Net462, Net463, Net47, Net471, Net472, Net48,
54-
Net50, Net50Windows, Net60, Net60Android, Net60Ios, Net60MacCatalyst, Net60MacOs, Net60TvOs, Net60Windows,
61+
Net50, Net50Windows,
62+
Net60, Net60Android, Net60Ios, Net60MacCatalyst, Net60MacOs, Net60TvOs, Net60Windows,
63+
Net70, Net70Android, Net70Ios, Net70MacCatalyst, Net70MacOs, Net70TvOs, Net70Windows,
5564
NetCore, NetCore45, NetCore451,
5665
NetCoreApp10, NetCoreApp11, NetCoreApp20, NetCoreApp21, NetCoreApp22, NetCoreApp30, NetCoreApp31,
5766
NetMf,

src/NuGetGallery.Core/NuGetGallery.Core.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
<Version>5.2.6</Version>
4848
</PackageReference>
4949
<PackageReference Include="NuGet.Packaging">
50-
<Version>6.0.0</Version>
50+
<Version>6.4.0</Version>
5151
</PackageReference>
5252
<PackageReference Include="NuGet.Services.FeatureFlags">
5353
<Version>2.106.0</Version>

src/NuGetGallery.Core/Services/AssetFrameworkHelper.cs

Lines changed: 19 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,12 @@ public static IEnumerable<NuGetFramework> GetAssetFrameworks(string packageId, I
3939
var conventions = new ManagedCodeConventions(runtimeGraph);
4040

4141
// Let's test for tools packages first--they're a special case
42-
var groups = Enumerable.Empty<ContentItemGroup>();
42+
var groups = new List<ContentItemGroup>();
4343
if (packageTypes.Count == 1 && (packageTypes[0] == PackageType.DotnetTool ||
4444
packageTypes[0] == PackageType.DotnetCliTool))
4545
{
4646
// Only a package that is a tool package (and nothing else) will be matched against tools pattern set
47-
groups = items.FindItemGroups(conventions.Patterns.ToolsAssemblies);
47+
items.PopulateItemGroups(conventions.Patterns.ToolsAssemblies, groups);
4848
}
4949
else
5050
{
@@ -67,14 +67,25 @@ public static IEnumerable<NuGetFramework> GetAssetFrameworks(string packageId, I
6767
};
6868

6969
// We'll create a set of "groups" --these are content items which satisfy file pattern sets
70-
var standardGroups = patterns
71-
.SelectMany(p => items.FindItemGroups(p));
70+
foreach (var pattern in patterns)
71+
{
72+
items.PopulateItemGroups(pattern, groups);
73+
}
7274

7375
// Filter out MSBuild assets that don't match the package ID and append to groups we already have
74-
var msbuildGroups = msbuildPatterns
75-
.SelectMany(p => items.FindItemGroups(p))
76-
.Where(g => HasBuildItemsForPackageId(g.Items, packageId));
77-
groups = standardGroups.Concat(msbuildGroups);
76+
var msbuildGroups = new List<ContentItemGroup>();
77+
foreach (var pattern in msbuildPatterns)
78+
{
79+
items.PopulateItemGroups(pattern, msbuildGroups);
80+
}
81+
82+
foreach (var group in msbuildGroups)
83+
{
84+
if (HasBuildItemsForPackageId(group.Items, packageId))
85+
{
86+
groups.Add(group);
87+
}
88+
}
7889
}
7990

8091
// Now that we have a collection of groups which have made it through the pattern set filter, let's transform them into TFMs

src/NuGetGallery.Services/NuGetGallery.Services.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@
8585
<Version>4.2.2</Version>
8686
</PackageReference>
8787
<PackageReference Include="NuGet.Protocol">
88-
<Version>6.0.0</Version>
88+
<Version>6.4.0</Version>
8989
</PackageReference>
9090
<PackageReference Include="NuGet.Services.Configuration">
9191
<Version>2.106.0</Version>

src/NuGetGallery/App_Code/ViewHelpers.cshtml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -588,10 +588,10 @@ var hlp = new AccordionHelper(name, formModelStatePrefix, expanded, page);
588588

589589
@helper Breadcrumb(bool showDivider, params Func<MvcHtmlString, HelperResult>[] segments)
590590
{
591-
<h1 role="list" class="ms-font-xl breadcrumb-title">
591+
<h1 class="ms-font-xl breadcrumb-title">
592592
@for (int i = 0; i < segments.Length; i++)
593593
{
594-
<span role="listitem" class="ms-noWrap">@segments[i](MvcHtmlString.Empty)</span>
594+
<span class="ms-noWrap">@segments[i](MvcHtmlString.Empty)</span>
595595

596596
if (i < segments.Length - 1)
597597
{
@@ -661,6 +661,7 @@ var hlp = new AccordionHelper(name, formModelStatePrefix, expanded, page);
661661

662662
window.onload = function () {
663663
$('div.g-recaptcha iframe').attr({ tabindex: "1" });
664+
$('div.g-recaptcha iframe').attr({ role: "document" });
664665
}
665666
</script>
666667
}

src/NuGetGallery/Views/Packages/DisplayPackage.cshtml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,9 @@
7272
{
7373
Id = "dotnet-cli",
7474
CommandPrefix = "> ",
75-
InstallPackageCommands = new [] { string.Format("dotnet new --install {0}::{1}", Model.Id, Model.Version) },
75+
InstallPackageCommands = new [] { string.Format("dotnet new install {0}::{1}", Model.Id, Model.Version) },
7676
AlertLevel = AlertLevel.Info,
77-
AlertMessage = "This package contains a <a href='https://aka.ms/dotnet-new'>.NET Core Template Package</a> you can call from the shell/command line.",
77+
AlertMessage = "This package contains a <a href='https://aka.ms/dotnet-new'>.NET Template Package</a> you can call from the shell/command line.",
7878
}
7979
};
8080
}
@@ -268,13 +268,13 @@
268268
</h1>
269269
@if (Model.IsVerified.HasValue && Model.IsVerified.Value)
270270
{
271-
<span class="prefix-reserve-title" aria-hidden="true">
272-
<img class="reserved-indicator" aria-hidden="true"
271+
<span class="prefix-reserve-title">
272+
<img class="reserved-indicator"
273273
src="~/Content/gallery/img/reserved-indicator.svg"
274274
@ViewHelpers.ImageFallback(Url.Absolute("~/Content/gallery/img/reserved-indicator-25x25.png"))
275275
data-content="@Strings.ReservedNamespace_ReservedIndicatorTooltip" tabindex="0"
276276
alt="@Strings.ReservedNamespace_ReservedIndicatorTooltip"/>
277-
<a href="https://docs.microsoft.com/en-us/nuget/nuget-org/id-prefix-reservation" class="prefix-reserve-label" ari-hidden="true">
277+
<a href="https://docs.microsoft.com/en-us/nuget/nuget-org/id-prefix-reservation" class="prefix-reserve-label">
278278
Prefix Reserved
279279
</a>
280280
</span>

0 commit comments

Comments
 (0)