X-Platform Building Broken - R2R #525

Closed
opened 2026-01-29 16:41:57 +00:00 by claunia · 2 comments
Owner

Originally created by @rbaker26 on GitHub (Jul 7, 2020).

Originally assigned to: @GregorBiswanger on GitHub.

X-Platform Building does not work. Seems to be a problem with Ready2Run (R2R).
This problem occurred for me after updating to 9.31.2.
For debugging, I tired the following test of both My Project and the Demo Project

  • Version: 9.31.2.0
  • .NET Core: 3.1.301
  • Target: See Table

Before 9.31.2

Build Platform Target Win Target Linux Target OSX
Windows ✔️ ✔️ *
Linux ✔️ ✔️ ✔️
OSX

* Windows to OSX was never supported due to symlinks

As of 9.31.2

Build Platform Target Win Target Linux Target OSX
Windows ✔️ *
Linux ✔️
OSX

* Windows to OSX was never supported due to symlinks

Now when building cross-platform targets, I get the following message:

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.

Note: I will include the full error messages for the different platforms below.

According to docs.microsoft.com,

The ReadyToRun compiler doesn't currently support cross-targeting. You must compile on a given target. For example, if you want R2R images for Windows x64, you need to run the publish command on that environment.

Before updating to 9.31.2, I was able to build targets for other systems.

Build Platform Target Win Target Linux Target OSX
Windows ✔️ win-to-linux-r2r.txt *
Linux linux-to-win-r2r.txt ✔️ linux-to-osx-r2r.txt
OSX

* Windows to OSX was never supported due to symlinks

Turning off R2R

To turn off R2R, the /PublishReadyToRun flag was set to false:

rbaker@DESKTOP-EUK8SOJ:***/ElectronNET-API-Demos$ electronize build /target win /PublishReadyToRun false

This caused a new set of errors:

Build Platform Target Win Target Linux Target OSX
Windows ✔️ win-to-linux.txt *
Linux linux-to-win.txt ✔️ linux-to-osx.txt
OSX

Summery

I don't have access to an OSX box, so I cannot test that aspect. Maybe someone here can?

I don't know what to make of these error messages. I will continue to try to decipher them, but there is a lot of "terminal vomit" involved with this.

Originally created by @rbaker26 on GitHub (Jul 7, 2020). Originally assigned to: @GregorBiswanger on GitHub. <!-- Please search existing issues to avoid creating duplicates. --> X-Platform Building does not work. Seems to be a problem with Ready2Run (R2R). This problem occurred for me after updating to 9.31.2. For debugging, I tired the following test of both [My Project](https://github.com/rbaker26/SAP1EMU/) and the [Demo Project](https://github.com/ElectronNET/electron.net-api-demos) <!-- Which version of Electron.NET CLI and API are you using? --> <!-- Please always try to use latest version before report. --> * **Version**: 9.31.2.0 <!-- Which version of .NET Core and Node.js are you using (if applicable)? --> * **.NET Core**: 3.1.301 <!-- What target are you building for? --> * **Target**: See Table **Before 9.31.2** | Build Platform | Target Win | Target Linux | Target OSX | |----------------|--------------------|--------------------|-----------------| | Windows | :heavy_check_mark: |:heavy_check_mark: | :x: * | | Linux | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | | OSX | :grey_question: | :grey_question: | :grey_question: | _* Windows to OSX was never supported due to symlinks_ **As of 9.31.2** | Build Platform | Target Win | Target Linux | Target OSX | |----------------|--------------------|--------------------|-----------------| | Windows | :heavy_check_mark: | :x: | :x: * | | Linux | :x: | :heavy_check_mark: | :x: | | OSX | :grey_question: | :grey_question: | :grey_question: | _* Windows to OSX was never supported due to symlinks_ Now when building cross-platform targets, I get the following message: > 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. **Note**: I will include the full error messages for the different platforms below. <!-- Enter your issue details below this comment. --> <!-- If you want, you can donate to increase issue priority (https://donorbox.org/electron-net) --> According to [docs.microsoft.com](https://docs.microsoft.com/en-us/dotnet/core/whats-new/dotnet-core-3-0#readytorun-images), > The ReadyToRun compiler doesn't currently support cross-targeting. You must compile on a given target. For example, if you want R2R images for Windows x64, you need to run the publish command on that environment. Before updating to 9.31.2, I was able to build targets for other systems. | Build Platform | Target Win | Target Linux | Target OSX | |----------------|--------------------|--------------------|-----------------| | Windows | :heavy_check_mark: | [win-to-linux-r2r.txt](https://github.com/ElectronNET/Electron.NET/files/4881912/win-to-linux-r2r.txt) | :x: * | | Linux | [linux-to-win-r2r.txt](https://github.com/ElectronNET/Electron.NET/files/4881908/linux-to-win-r2r.txt) | :heavy_check_mark: | [linux-to-osx-r2r.txt](https://github.com/ElectronNET/Electron.NET/files/4881900/linux-to-osx-r2r.txt) | | OSX | :grey_question: | :grey_question: | :grey_question: | _* Windows to OSX was never supported due to symlinks_ ### Turning off R2R To turn off R2R, the /PublishReadyToRun flag was set to false: ```bash rbaker@DESKTOP-EUK8SOJ:***/ElectronNET-API-Demos$ electronize build /target win /PublishReadyToRun false ``` This caused a new set of errors: | Build Platform | Target Win | Target Linux | Target OSX | |----------------|--------------------|--------------------|-----------------| | Windows | :heavy_check_mark: |[win-to-linux.txt](https://github.com/ElectronNET/Electron.NET/files/4881797/win-to-linux.txt) | :x: * | | Linux |[linux-to-win.txt](https://github.com/ElectronNET/Electron.NET/files/4881786/linux-to-win.txt) | :heavy_check_mark: | [linux-to-osx.txt](https://github.com/ElectronNET/Electron.NET/files/4881882/linux-to-osx.txt) | | OSX | :grey_question: | :grey_question: | :grey_question: | ### Summery I don't have access to an OSX box, so I cannot test that aspect. Maybe someone here can? I don't know what to make of these error messages. I will continue to try to decipher them, but there is a lot of "terminal vomit" involved with this.
claunia added the bug label 2026-01-29 16:41:57 +00:00
Author
Owner

@GregorBiswanger commented on GitHub (Aug 14, 2020):

Fixed in the new version from Electron.NET 9.31.3.

@GregorBiswanger commented on GitHub (Aug 14, 2020): Fixed in the new version from Electron.NET 9.31.3.
Author
Owner

@Mjolnir136 commented on GitHub (Oct 8, 2020):

@GregorBiswanger i've same issue, but only 9.31.2 available on nuget. Can you say when 9.31.3 will be publish?

@Mjolnir136 commented on GitHub (Oct 8, 2020): @GregorBiswanger i've same issue, but only 9.31.2 available on nuget. Can you say when 9.31.3 will be publish?
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/Electron.NET#525