mirror of
https://github.com/github/codeql.git
synced 2026-04-25 16:55:19 +02:00
C#: Address review comments.
This commit is contained in:
@@ -5,8 +5,12 @@ namespace Semmle.Extraction.CSharp.DependencyFetching
|
||||
{
|
||||
internal static class FrameworkPackageNames
|
||||
{
|
||||
public static string AspNetCoreFramework { get; } = "microsoft.aspnetcore.app.ref";
|
||||
|
||||
public static string WindowsDesktopFramework { get; } = "microsoft.windowsdesktop.app.ref";
|
||||
|
||||
// The order of the packages is important.
|
||||
public static readonly string[] NetFrameworks = new string[]
|
||||
public static string[] NetFrameworks { get; } = new string[]
|
||||
{
|
||||
"microsoft.netcore.app.ref", // net7.0, ... net5.0, netcoreapp3.1, netcoreapp3.0
|
||||
"microsoft.netframework.referenceassemblies.", // net48, ..., net20
|
||||
@@ -14,13 +18,7 @@ namespace Semmle.Extraction.CSharp.DependencyFetching
|
||||
"netstandard.library" // netstandard2.0
|
||||
};
|
||||
|
||||
public static string AspNetCoreFramework =>
|
||||
"microsoft.aspnetcore.app.ref";
|
||||
|
||||
public static string WindowsDesktopFramework =>
|
||||
"microsoft.windowsdesktop.app.ref";
|
||||
|
||||
public static readonly IEnumerable<string> AllFrameworks =
|
||||
public static IEnumerable<string> AllFrameworks { get; } =
|
||||
NetFrameworks
|
||||
.Union(new string[] { AspNetCoreFramework, WindowsDesktopFramework });
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user