mirror of
https://github.com/ElectronNET/Electron.NET.git
synced 2026-02-03 21:25:13 +00:00
"--self-contained" always present on the command line #971
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @tomshane on GitHub (Feb 28, 2025).
I'm using the latest version and no matter what arguments I add in the command line, I can't get rid of automatically added --self-contained parameter.
I tried:
Everytime --self-contained is added to the command:
dotnet publish -r win-x64 -c "Release" --output "C:\Downloads\ReactApp2\ReactApp2.Server\obj\desktop\win\bin" /p:PublishReadyToRun=true /p:PublishSingleFile=true --self-contained@AmbroziuBaban commented on GitHub (Mar 24, 2025):
@tomshane is there an use case in which you wound want the app to be framework dependent and not include it in your build? (aka --no-self-contained)?
I've prepared a PR in case there is a business use case for this.
@tomshane commented on GitHub (Mar 24, 2025):
I want to make the bundle to be smaller for download and let users download .NET runtime separately, when needed.
@AmbroziuBaban commented on GitHub (Mar 24, 2025):
According to this PR there is already a fix in the Develop branch. Seems like it's using the param /p:SelfContained instead of the usual --self-contained.
Since the ElectronNET.CLI is using the Windows/DOS-style ( / in front of the option), the --self-contained, --no-self-contained, --sc options are not supported.
@FlorianRappl commented on GitHub (Oct 31, 2025):
Outdated - use
ElectronNET.CoreandElectronNET.Core.AspNet.See Wiki / What's New.