rules_dotnet icon indicating copy to clipboard operation
rules_dotnet copied to clipboard

Question: how to toggle between release and debug mode?

Open njlr opened this issue 2 years ago • 1 comments

For example in an fsharp_binary

njlr avatar Nov 07 '23 10:11 njlr

I have actually wanted to make this a bit nicer. Currently we use the Bazel way of switching between by using https://bazel.build/docs/user-manual#compilation-mode.

rules_dotnet defaults to optimized builds but if you set --compilation_mode=dbg org -c dbg it will use the debug flags

purkhusid avatar Nov 08 '23 09:11 purkhusid

This is now documented here: https://github.com/bazelbuild/rules_dotnet/tree/master/docs#debugrelease-configurations

purkhusid avatar Apr 03 '24 15:04 purkhusid