Releases: bazel-contrib/rules_dotnet
Releases · bazel-contrib/rules_dotnet
v0.18.2
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.2")
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")
What's Changed
- csharp_assembly: Do not expose analyzer compile-/runtime deps to users by @sin-ack in #482
- Update SDKs by @purkhusid in #483
Full Changelog: v0.18.1...v0.18.2
v0.18.1
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.1")
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")
What's Changed
- Slim down runfiles in publish_binary by @purkhusid in #481
Full Changelog: v0.18.0...v0.18.1
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
v0.17.5
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.17.5")
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")
What's Changed
- Update NUnit 3 package to latest version by @purkhusid in #464
Full Changelog: v0.17.4...v0.17.5
v0.17.4
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.17.4")
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")
Full Changelog: v0.17.3...v0.17.4
v0.17.3
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.17.3")
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")
Full Changelog: v0.17.2...v0.17.3
v0.17.2
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.17.2")
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")
Full Changelog: v0.17.1...v0.17.2
v0.16.1
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.16.1")
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")
Full Changelog: v0.16.0...v0.16.1
v0.16.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.16.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")
What's Changed
- Use assembly name for DotnetAssembly{Compile,Runtime}Info by @sin-ack in #435
- Use new host constraints in
@platforms
by @Wyverald in #437 - Publish appsettingsjson by @mkempers in #438
- Fix default transition reset by @purkhusid in #453
- Rework Analyzer/Source Generator support by @purkhusid in #452
New Contributors
- @sin-ack made their first contribution in #435
- @Wyverald made their first contribution in #437
- @mkempers made their first contribution in #438
Full Changelog: v0.15.1...v0.16.0
v0.15.1
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.15.1")
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")
What's Changed
- Add tests for cross publishing by @purkhusid in #428
- Add musl/alpine packs by @purkhusid in #429
Full Changelog: v0.15.0...v0.15.1