Failed to build for target win or linux on macOS #706

Closed
opened 2026-01-29 16:46:23 +00:00 by claunia · 1 comment
Owner

Originally created by @aguang-xyz on GitHub (Oct 7, 2021).

Originally assigned to: @GregorBiswanger on GitHub.

Version:

  • ElectronNET.CLI: 13.5.1.0
  • ElectronNET.API: 13.5.1
  • Dotnet: 5.0.401
  • Node: 14.17.3

Target:

  • win or linux

Steps to Reproduce:

  1. Open a Electron.NET project on macOS
  2. Run electronize build /target win or electronize build /target linux
  3. Then I got the following error.
/usr/local/share/dotnet/sdk/5.0.401/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Publish.targets(316,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.
Originally created by @aguang-xyz on GitHub (Oct 7, 2021). Originally assigned to: @GregorBiswanger on GitHub. ### **Version**: * ElectronNET.CLI: `13.5.1.0` * ElectronNET.API: `13.5.1` * Dotnet: `5.0.401` * Node: `14.17.3` ### **Target**: * `win` or `linux` <!-- Enter your issue details below this comment. --> <!-- If you want, you can donate to increase issue priority (https://donorbox.org/electron-net) --> Steps to Reproduce: 1. Open a Electron.NET project on macOS 2. Run `electronize build /target win` or `electronize build /target linux` 3. Then I got the following error. ``` /usr/local/share/dotnet/sdk/5.0.401/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Publish.targets(316,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. ```
claunia added the bug label 2026-01-29 16:46:23 +00:00
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!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/Electron.NET#706