Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Publish as single file? #358

Open
njlr opened this issue May 23, 2023 · 1 comment
Open

Publish as single file? #358

njlr opened this issue May 23, 2023 · 1 comment

Comments

@njlr
Copy link
Contributor

njlr commented May 23, 2023

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
Copy link
Collaborator

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants