rules_dotnet icon indicating copy to clipboard operation
rules_dotnet copied to clipboard

.NET rules for Bazel

Results 67 rules_dotnet issues
Sort by recently updated
recently updated
newest added

I'm working on a Bazel-based project that has a goal of enabling code coverage unit testing for our supported languages, one of those languages being C#. However, if I understand...

I am trying to publish an `fsharp_binary` as a single file, equivalent to: ```bash dotnet publish -c Release --runtime linux-x64 --self-contained -p:PublishSingleFile=true ``` Is this possible? It appears that this...

I was wondering if anyone has figured out how to depend on native libraries in a `rules_dotnet` target? ```starlark load("@rules_cc//cc:defs.bzl", "cc_library") load("@rules_dotnet//dotnet:defs.bzl", "fsharp_binary") cc_library( name = "math", srcs = [...

`csharp_library` and its ilk accept attributes that control the warning level and whether warnings are reported as errors, but they do not let you pass the `/nowarn` flag to the...

Source code analysis can be very slow some large projects; and can effect build memory usage. It'd be great if it was possible to disable analyzers: https://learn.microsoft.com/en-us/visualstudio/code-quality/disable-code-analysis?view=vs-2022 I'm guessing this...

Using the following options in `csharp_nunit_test`, the build can still fail with CS1591 errors. I imagine this is true of other rules as well. ``` csharp_nunit_test( ... treat_warnings_as_errors = True,...

Full repro here: https://github.com/njlr/rules-dotnet-publish-docker ```starlark load("@io_bazel_rules_docker//container:container.bzl", "container_image") load("@rules_pkg//:pkg.bzl", "pkg_tar") load("@rules_dotnet//dotnet:defs.bzl", "fsharp_binary", "publish_binary") fsharp_binary( name = "app", srcs = [ "Program.fs", ], target_frameworks = [ "net6.0", ], deps = [ "@paket.main//microsoft.netcore.app.ref",...

I'd like to try and use rules_dotnet for an aspnetcore app that uses entity framework. I can get the project to build but I'll need to be able to use...

It'd be great to implement support bazel modules. I've run into this issue with bazel which prevents registering toolchains: https://github.com/bazelbuild/bazel/issues/17289 ``` ERROR: /home/me/helloworld/service/BUILD.bazel:3:14: While resolving toolchains for target //service:example: No...

I am trying to maintain MS Build and rules_dotnet targets together. The goal is to have both work on the same code. Things are complicated by the fact that my...