Skip to content

v0.14.0

Pre-release
Pre-release
Compare
Choose a tag to compare
@github-actions github-actions released this 22 Jan 22:55
· 45 commits to master since this release
1226189

Using Bzlmod with Bazel 7 (We require Bazel 7 and above)

  1. Add to your MODULE.bazel file:
bazel_dep(name = "rules_dotnet", version = "0.14.0")

dotnet = use_extension("@rules_dotnet//dotnet:extensions.bzl", "dotnet")
dotnet.toolchain(dotnet_version = "8.0.100")
use_repo(dotnet, "dotnet_toolchains")

register_toolchains("@dotnet_toolchains//:all")

Using WORKSPACE

Paste this snippet into your file:

load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
    name = "rules_dotnet",
    sha256 = "d01b0f44e58224deeb8ac81afe8701385d41b16c8028709d3a4ed5b46f1c48a0",
    strip_prefix = "rules_dotnet-0.14.0",
    url = "https://github.com/bazelbuild/rules_dotnet/releases/download/v0.14.0/rules_dotnet-v0.14.0.tar.gz",
)

load(
    "@rules_dotnet//dotnet:repositories.bzl",
    "dotnet_register_toolchains",
    "rules_dotnet_dependencies",
)

rules_dotnet_dependencies()

# Here you can specify the version of the .NET SDK to use.
dotnet_register_toolchains("dotnet", "8.0.100")

load("@rules_dotnet//dotnet:paket.rules_dotnet_nuget_packages.bzl", "rules_dotnet_nuget_packages")

rules_dotnet_nuget_packages()

What's Changed

Full Changelog: v0.13.0...v0.14.0