v0.18.0
Using Bzlmod with Bazel 7 and above
Requirements:
- Bazel 7.0.0 or later
- Bzlmod must be enabled
- Add to your
MODULE.bazel
file:
bazel_dep(name = "rules_dotnet", version = "0.18.0")
dotnet = use_extension("@rules_dotnet//dotnet:extensions.bzl", "dotnet")
dotnet.toolchain(dotnet_version = "8.0.200")
use_repo(dotnet, "dotnet_toolchains")
register_toolchains("@dotnet_toolchains//:all")
Breaking changes
- The runfiles handling in
publish_binary
has been changed in a way that might break some users depending on how they package their binaries to move them out of Bazel. If you are usingpkg_tar
you need to make sure that you are usinginclude_runfiles = True
.
What's Changed
- Targeting fixes by @sin-ack in #470
- Map embedded resource names like MSBuild by @sin-ack in #475
- Implement NET*_OR_GREATER preprocessor defines by @sin-ack in #478
- Pass dependencies of analyzers as analyzer DLLs by @sin-ack in #473
- Upgrade to Bazel 8 by @purkhusid in #479
Full Changelog: v0.17.5...v0.18.0