Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

X-Platform Building Broken - R2R #446

Closed
rbaker26 opened this issue Jul 7, 2020 · 2 comments
Closed

X-Platform Building Broken - R2R #446

rbaker26 opened this issue Jul 7, 2020 · 2 comments
Assignees
Labels

Comments

@rbaker26
Copy link
Contributor

rbaker26 commented Jul 7, 2020

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.

@GregorBiswanger
Copy link
Member

Fixed in the new version from Electron.NET 9.31.3.

@younglip
Copy link

younglip commented 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 up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants