bazel-contrib / rules_dotnet

.NET rules for Bazel
Apache License 2.0
190 stars 84 forks source link

Publish as single file? #358

Open njlr opened 1 year ago

njlr commented 1 year ago

I am trying to publish an fsharp_binary as a single file, equivalent to:

dotnet publish -c Release --runtime linux-x64 --self-contained -p:PublishSingleFile=true

Is this possible? It appears that this is a TODO? https://github.com/bazelbuild/rules_dotnet/blob/master/dotnet/private/rules/publish_binary/publish_binary.bzl#L83-L89

If so, I guess we can use this issue for tracking.

purkhusid commented 1 year ago

This is not possible at the moment. I might look into this once .Net 8 comes around and ahead-of-time compilation is more stable than it's now. But open to contributions if anybody is willing to take a look at this.