Version 13.1.5 --no-self-contained does not work #812

Closed
opened 2026-01-29 16:49:15 +00:00 by claunia · 4 comments
Owner

Originally created by @drowhunter on GitHub (Jul 18, 2022).

Originally assigned to: @GregorBiswanger on GitHub.

Electron Version 13.5.1

.Net Core 6
NodeJS 16.16.1

  • Target:
    windows

runs with --self-contained

Steps to Reproduce:

dotnet tool run electronize build /target win /dotnet-publish --no-self-contained

Produces the following output

Build Electron Application...
Arguments:
        target = win
        dotnet-publish = --no-self-contained
Build ASP.NET Core App for win-x64...
Executing dotnet publish in this directory: C:\_src\myapp\obj\desktop\win
Build ASP.NET Core App for win-x64 under Release-Configuration...
dotnet publish -r win-x64 -c "Release" --output "C:\_src\myapp\obj\desktop\win\bin" /p:PublishReadyToRun=true /p:PublishSingleFile=true --self-contained

Originally created by @drowhunter on GitHub (Jul 18, 2022). Originally assigned to: @GregorBiswanger on GitHub. Electron Version 13.5.1 <!-- Which version of .NET Core and Node.js are you using (if applicable)? --> .Net Core 6 NodeJS 16.16.1 <!-- What target are you building for? --> * **Target**: windows <!-- Enter your issue details below this comment. --> runs with --self-contained <!-- If you want, you can donate to increase issue priority (https://donorbox.org/electron-net) --> Steps to Reproduce: ``` dotnet tool run electronize build /target win /dotnet-publish --no-self-contained ``` Produces the following output ``` Build Electron Application... Arguments: target = win dotnet-publish = --no-self-contained Build ASP.NET Core App for win-x64... Executing dotnet publish in this directory: C:\_src\myapp\obj\desktop\win Build ASP.NET Core App for win-x64 under Release-Configuration... dotnet publish -r win-x64 -c "Release" --output "C:\_src\myapp\obj\desktop\win\bin" /p:PublishReadyToRun=true /p:PublishSingleFile=true --self-contained ```
claunia added the bug label 2026-01-29 16:49:15 +00:00
Author
Owner

@drowhunter commented on GitHub (Jul 18, 2022):

I just noticed what is going on. By downloading the source code and building myself, it seems that it works. The latest release that is installed when running dotnet tool install electronnet.cli installs 13.5.1 which is before /dotnet-publsh was added.

when will a new build be released?

@drowhunter commented on GitHub (Jul 18, 2022): I just noticed what is going on. By downloading the source code and building myself, it seems that it works. The latest release that is installed when running `dotnet tool install electronnet.cli` installs 13.5.1 which is before `/dotnet-publsh` was added. when will a new build be released?
Author
Owner

@m3nax commented on GitHub (Jul 19, 2022):

Hi @drowhunter, here is the issue that talks about the new version -> #710

@m3nax commented on GitHub (Jul 19, 2022): Hi @drowhunter, here is the issue that talks about the new version -> #710
Author
Owner

@GregorBiswanger commented on GitHub (Mar 28, 2023):

🎉🚀 New Electron.NET version 23.6.1 released 🚀🎉

With native Electron 23 and .NET 6 support. Your problem should be fixed here. If you continue to have the problem, please let us know. Please note the correct updating of your API & CLI. Info in the README. Have fun!

@GregorBiswanger commented on GitHub (Mar 28, 2023): 🎉🚀 New Electron.NET version 23.6.1 released 🚀🎉 With native Electron 23 and .NET 6 support. Your problem should be fixed here. If you continue to have the problem, please let us know. Please note the correct updating of your API & CLI. Info in the README. Have fun!
Author
Owner

@tomshane commented 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:

* electronize build /target win /dotnet-publish --no-self-contained
* electronize build /target win /dotnet-publish --self-contained false
* electronize build /target win /PublishSingleFile false /PublishReadyToRun false /dotnet-publish --self-contained false
* electronize build /target win /PublishSingleFile false /PublishReadyToRun false /dotnet-publish --no-self-contained

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

@tomshane commented 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: ``` * electronize build /target win /dotnet-publish --no-self-contained * electronize build /target win /dotnet-publish --self-contained false * electronize build /target win /PublishSingleFile false /PublishReadyToRun false /dotnet-publish --self-contained false * electronize build /target win /PublishSingleFile false /PublishReadyToRun false /dotnet-publish --no-self-contained ``` 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`
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/Electron.NET#812