From e7ca7bf5deefc2b32707f045c0c04f5a5abea2fa Mon Sep 17 00:00:00 2001 From: Michael Nebel Date: Mon, 25 Nov 2024 13:25:16 +0100 Subject: [PATCH 1/2] C#: Bazel build should target .NET9 framework. --- misc/bazel/csharp.bzl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/misc/bazel/csharp.bzl b/misc/bazel/csharp.bzl index be891b142f94..2ba8c59f0767 100644 --- a/misc/bazel/csharp.bzl +++ b/misc/bazel/csharp.bzl @@ -2,7 +2,7 @@ load("@rules_dotnet//dotnet:defs.bzl", "csharp_binary", "csharp_library", "cshar load("@rules_pkg//pkg:mappings.bzl", "strip_prefix") load("//misc/bazel:pkg.bzl", "codeql_pkg_files") -TARGET_FRAMEWORK = "net8.0" +TARGET_FRAMEWORK = "net9.0" def _gen_assembly_info(name): assembly_info_gen = name + "-assembly-info" From b91a97f2496ed5fc522e92c229c7002a0662926d Mon Sep 17 00:00:00 2001 From: Michael Nebel Date: Mon, 25 Nov 2024 13:56:03 +0100 Subject: [PATCH 2/2] C#: Run unit tests on bazel changes. --- .github/workflows/csharp-qltest.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/csharp-qltest.yml b/.github/workflows/csharp-qltest.yml index cb301d65f9aa..c24b8d3bc007 100644 --- a/.github/workflows/csharp-qltest.yml +++ b/.github/workflows/csharp-qltest.yml @@ -5,8 +5,10 @@ on: paths: - "csharp/**" - "shared/**" + - "misc/bazel/**" - .github/actions/fetch-codeql/action.yml - codeql-workspace.yml + - "MODULE.bazel" branches: - main - "rc/*" @@ -14,9 +16,11 @@ on: paths: - "csharp/**" - "shared/**" + - "misc/bazel/**" - .github/workflows/csharp-qltest.yml - .github/actions/fetch-codeql/action.yml - codeql-workspace.yml + - "MODULE.bazel" branches: - main - "rc/*"