electron.net-api-demos
electron.net-api-demos copied to clipboard
How to build the demo as a Desktop app for linux?
I try to build the app for linux :
PS D:\MyProjects4\Blazor\electron.net-api-demos-master\ElectronNET-API-Demos> electronize build /target linux
Build Electron Application...
Arguments:
target = linux
Build ASP.NET Core App for linux-x64...
Executing dotnet publish in this directory: D:\MyProjects4\Blazor\electron.net-api-demos-master\ElectronNET-API-Demos\obj\desktop\linux
Build ASP.NET Core App for linux-x64 under Release-Configuration...
dotnet publish -r linux-x64 -c "Release" --output "D:\MyProjects4\Blazor\electron.net-api-demos-master\ElectronNET-API-Demos\obj\desktop\linux\bin" /p:PublishReadyToRun=true /p:PublishSingleFile=true --self-contained
dotnet publish -r linux-x64 -c "Release" --output "D:\MyProjects4\Blazor\electron.net-api-demos-master\ElectronNET-API-Demos\obj\desktop\linux\bin" /p:PublishReadyToRun=true /p:PublishSingleFile=true --self-contained
Microsoft (R) Build Engine version 17.2.0+41abc5629 for .NET
Copyright (C) Microsoft Corporation. All rights reserved.
Determining projects to restore...
Restored D:\MyProjects4\Blazor\electron.net-api-demos-master\ElectronNET-API-Demos\ElectronNET-API-Demos.csproj (in 3.44 sec).
ElectronNET-API-Demos -> D:\MyProjects4\Blazor\electron.net-api-demos-master\ElectronNET-API-Demos\bin\Release\netcoreapp3.1\linux-x64\ElectronNET-API-Demos.dll
ElectronNET-API-Demos -> D:\MyProjects4\Blazor\electron.net-api-demos-master\ElectronNET-API-Demos\bin\Release\netcoreapp3.1\linux-x64\ElectronNET-API-Demos.Views.dll
C:\Program Files\dotnet\sdk\6.0.302\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.Publish.targets(293,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. [D:\MyProjects4\Blazor\electron.net-api-demos-master\ElectronNET-API-Demos\ElectronNET-API-Demos.csproj]
What is wrong? how to build the desktop app for linux as it was done for win?