load("//dotnet:defs.bzl", "csharp_binary", "framework")

csharp_binary(
    name = "generator",
    srcs = glob(["**/*.cs"]),
    # Used as a tool in our build, so just target one framework
    target_frameworks = ["net7.0"],
    visibility = [
        "//dotnet:__subpackages__",
    ],
    deps = [
        framework("nuget", "CommandLineParser"),
        framework("nuget", "Handlebars.Net"),
        framework("nuget", "Humanizer.Core"),
        framework("nuget", "Microsoft.Extensions.DependencyInjection"),
        framework("nuget", "Microsoft.Extensions.DependencyInjection.Abstractions"),
        framework("nuget", "Newtonsoft.Json"),
    ],
)
