mirror of
https://github.com/github/codeql.git
synced 2025-12-16 16:53:25 +01:00
C#: Update extractor to target .NET 10.
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
<Project>
|
<Project>
|
||||||
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<TargetFramework>net9.0</TargetFramework>
|
<TargetFramework>net10.0</TargetFramework>
|
||||||
<RuntimeIdentifiers>win-x64;linux-x64;osx-x64</RuntimeIdentifiers>
|
<RuntimeIdentifiers>win-x64;linux-x64;osx-x64</RuntimeIdentifiers>
|
||||||
<Nullable>enable</Nullable>
|
<Nullable>enable</Nullable>
|
||||||
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
|
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
|
||||||
|
|||||||
@@ -157,7 +157,7 @@ namespace Semmle.Extraction.CSharp.DependencyFetching
|
|||||||
}
|
}
|
||||||
|
|
||||||
// The version number should be kept in sync with the version .NET version used for building the application.
|
// The version number should be kept in sync with the version .NET version used for building the application.
|
||||||
public const string LatestDotNetSdkVersion = "9.0.300";
|
public const string LatestDotNetSdkVersion = "10.0.100";
|
||||||
|
|
||||||
public static ReadOnlyDictionary<string, string> MinimalEnvironment => IDotNetCliInvoker.MinimalEnvironment;
|
public static ReadOnlyDictionary<string, string> MinimalEnvironment => IDotNetCliInvoker.MinimalEnvironment;
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
<Project Sdk="Microsoft.NET.Sdk">
|
<Project Sdk="Microsoft.NET.Sdk">
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<OutputType>Exe</OutputType>
|
<OutputType>Exe</OutputType>
|
||||||
<TargetFramework>net9.0</TargetFramework>
|
<TargetFramework>net10.0</TargetFramework>
|
||||||
<AssemblyName>Semmle.Extraction.CSharp.DependencyStubGenerator</AssemblyName>
|
<AssemblyName>Semmle.Extraction.CSharp.DependencyStubGenerator</AssemblyName>
|
||||||
<RootNamespace>Semmle.Extraction.CSharp.DependencyStubGenerator</RootNamespace>
|
<RootNamespace>Semmle.Extraction.CSharp.DependencyStubGenerator</RootNamespace>
|
||||||
<ImplicitUsings>enable</ImplicitUsings>
|
<ImplicitUsings>enable</ImplicitUsings>
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ using System.Reflection;
|
|||||||
[assembly: AssemblyCompany("GitHub")]
|
[assembly: AssemblyCompany("GitHub")]
|
||||||
[assembly: AssemblyCopyright("Copyright © 2024 GitHub")]
|
[assembly: AssemblyCopyright("Copyright © 2024 GitHub")]
|
||||||
|
|
||||||
[assembly: System.Runtime.Versioning.TargetFramework(".NETCoreApp,Version=v9.0", FrameworkDisplayName = ".NET 9.0")]
|
[assembly: System.Runtime.Versioning.TargetFramework(".NETCoreApp,Version=v10.0", FrameworkDisplayName = ".NET 10.0")]
|
||||||
|
|
||||||
"""
|
"""
|
||||||
output_file.write_text(output_file_contents)
|
output_file.write_text(output_file_contents)
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ load("@rules_dotnet//dotnet:defs.bzl", "csharp_binary", "csharp_library", "cshar
|
|||||||
load("@rules_pkg//pkg:mappings.bzl", "strip_prefix")
|
load("@rules_pkg//pkg:mappings.bzl", "strip_prefix")
|
||||||
load("//misc/bazel:pkg.bzl", "codeql_pkg_files")
|
load("//misc/bazel:pkg.bzl", "codeql_pkg_files")
|
||||||
|
|
||||||
TARGET_FRAMEWORK = "net9.0"
|
TARGET_FRAMEWORK = "net10.0"
|
||||||
|
|
||||||
def _gen_assembly_info(name):
|
def _gen_assembly_info(name):
|
||||||
assembly_info_gen = name + "-assembly-info"
|
assembly_info_gen = name + "-assembly-info"
|
||||||
|
|||||||
Reference in New Issue
Block a user