mirror of
https://github.com/ElectronNET/Electron.NET.git
synced 2026-02-03 21:25:13 +00:00
fail to build linux on windows #569
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 @ZHHHHH on GitHub (Oct 18, 2020).
Originally assigned to: @GregorBiswanger on GitHub.
ElectronNET.API Version:v9.31.2
ElectronNET.CLI Version:v9.31.2
i type the build command
electronize build /target linuxthen occur following error
C:\Program Files\dotnet\sdk\3.1.101\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.Publish.targets(270,5): error NETSDK1095: Optimizing assemblies for performance is not supported for the selected target platform or architecture. Please verify you are using a supported runtime identifier, or set the PublishReadyToRun property to false. [F:\Program Files (x86)\GitHub仓库\WebApplication1\WebApplication1.csproj]@GregorBiswanger commented on GitHub (Oct 18, 2020):
Please use the following command:
electronize build /target linux /PublishReadyToRun false@ZHHHHH commented on GitHub (Oct 19, 2020):
i have try the command:
electronize build /target linux /PublishReadyToRun falseand i got another problem like this:
https://github.com/ElectronNET/Electron.NET/issues/482#issuecomment-699161802
i am using ubuntu,how to run generated file on linux
@GregorBiswanger commented on GitHub (Oct 25, 2020):
Electron.NET uses electron builder under the hood. You can configure this in the
electron.manifest.jsonfile in the build part.The electron-builder documentation shows a target property:
https://www.electron.build/configuration/linux
Could I help you?
@ZHHHHH commented on GitHub (Oct 27, 2020):
OK,I will try it, thanks for reply