1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
# cs/labs/csharp/BUILD
load("@rules_dotnet//dotnet:defs.bzl", "csharp_binary", "csharp_library", "csharp_test")
package(default_visibility = ["//visibility:public"])
csharp_library(
name = "greeter_lib",
srcs = ["Program.cs"],
target_frameworks = ["net8.0"],
)
csharp_binary(
name = "hello_world",
srcs = ["Program.cs"],
target_frameworks = ["net8.0"],
)
csharp_test(
name = "hello_world_test_gpt_cs",
srcs = ["hello_world_test.gpt.cs"],
target_frameworks = ["net8.0"],
deps = [":greeter_lib"],
)