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

The application has been generated successfully. No interface will be displayed when opening exe? #650

Open
lzb949838390 opened this issue Jan 2, 2022 · 7 comments
Labels

Comments

@lzb949838390
Copy link

🚨 The issue tracker is not for questions 🚨

@lzb949838390
Copy link
Author

97a5fe99a40ecb2c614272205d4678c
1641106026(1)

@lzb949838390
Copy link
Author

“electronize start” success
“electronize build /target win” has question

@lzb949838390
Copy link
Author

I run \bin\Desktop\win-unpacked\resources\bin\OOP.BMS.Web.exe
1641107119(1)

@danatcofo
Copy link
Contributor

Looks like a bug in your code. This is not likely an electron.net issue.

@schaveyt
Copy link

schaveyt commented Jan 3, 2022

@lzb949838390

NOTE: When electronzie build is executed, it calls to generate a single-file, self-contained exe:

 dotnet publish ....... /p:PublishReadyToRun=true /p:PublishSingleFile=true --self-contained

By the looks of the exception, your code is utilizing reflection in a particular why that does not work when things are published as a single file. I found this issue over in the dotnet/runtime repo explaining why this is so.

You can either adjust your code or you can disable the single-file flag by:

electronize build /target win /p:publishSingleFile=false

@lzb949838390
Copy link
Author

@schaveyt Thank you.I have solved the problem of win build. But I have a new problem,Error occurred while linux build.
look...
1641283801(1)

@sirkadirov
Copy link

Hi, @lzb949838390! As I can see (electron-userland/electron-builder#3569), it's a temporary (or not so temporary 😢: electron-userland/electron-build-service#17) error caused due to unreachable remote build server, which is used by electron-builder - a npm package and an infrastructure that handles electron apps packaging. You can try again later, or set up a build agent on a local machine. If you need to automate your Electron.NET app's builds, try using CI services like Travis CI, GitHub Actions or AppVeyor - I think that it would be easier to set up and maintain than hosting own build agent for electron-builder.

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

4 participants