Skip to content

Commit b7b10ce

Browse files
committed
C#: Address review comments.
1 parent 49b2209 commit b7b10ce

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

csharp/extractor/Semmle.Extraction.CSharp.DependencyFetching/FrameworkPackageNames.cs

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,22 +5,20 @@ namespace Semmle.Extraction.CSharp.DependencyFetching
55
{
66
internal static class FrameworkPackageNames
77
{
8+
public static string AspNetCoreFramework { get; } = "microsoft.aspnetcore.app.ref";
9+
10+
public static string WindowsDesktopFramework { get; } = "microsoft.windowsdesktop.app.ref";
11+
812
// The order of the packages is important.
9-
public static readonly string[] NetFrameworks = new string[]
13+
public static string[] NetFrameworks { get; } = new string[]
1014
{
1115
"microsoft.netcore.app.ref", // net7.0, ... net5.0, netcoreapp3.1, netcoreapp3.0
1216
"microsoft.netframework.referenceassemblies.", // net48, ..., net20
1317
"netstandard.library.ref", // netstandard2.1
1418
"netstandard.library" // netstandard2.0
1519
};
1620

17-
public static string AspNetCoreFramework =>
18-
"microsoft.aspnetcore.app.ref";
19-
20-
public static string WindowsDesktopFramework =>
21-
"microsoft.windowsdesktop.app.ref";
22-
23-
public static readonly IEnumerable<string> AllFrameworks =
21+
public static IEnumerable<string> AllFrameworks { get; } =
2422
NetFrameworks
2523
.Union(new string[] { AspNetCoreFramework, WindowsDesktopFramework });
2624
}

0 commit comments

Comments
 (0)