The use of AutoHideMenuBar in example code on landing page causes a warning. #1037

Closed
opened 2026-01-29 16:56:04 +00:00 by claunia · 3 comments
Owner

Originally created by @markatosi on GitHub (Dec 12, 2025).

  • Version: 0.3.0-pre.353

10.101

  • Target: osx-arm64

The example code should either not use AutoHideMenuBar or add the following so that a warning is not created. This is especially true when
true is being used in the project file.

if (OperatingSystem.IsWindows() || OperatingSystem.IsLinux())
        options.AutoHideMenuBar = true;
Originally created by @markatosi on GitHub (Dec 12, 2025). <!-- Please search existing issues to avoid creating duplicates. --> <!-- Which version of Electron.NET CLI and API are you using? --> <!-- Please always try to use latest version before report. --> * **Version**: 0.3.0-pre.353 <!-- Which version of .NET Core and Node.js are you using (if applicable)? --> 10.101 <!-- What target are you building for? --> * **Target**: osx-arm64 <!-- Enter your issue details below this comment. --> <!-- If you want, you can donate to increase issue priority (https://donorbox.org/electron-net) --> The example code should either not use AutoHideMenuBar or add the following so that a warning is not created. This is especially true when <TreatWarningsAsErrors>true</TreatWarningsAsErrors> is being used in the project file. ``` if (OperatingSystem.IsWindows() || OperatingSystem.IsLinux()) options.AutoHideMenuBar = true; ```
claunia added the bugexamples labels 2026-01-29 16:56:04 +00:00
Author
Owner

@softworkz commented on GitHub (Dec 12, 2025):

Would you be able to submit a PR?

@softworkz commented on GitHub (Dec 12, 2025): Would you be able to submit a PR?
Author
Owner

@markatosi commented on GitHub (Dec 12, 2025):

Submitted

@markatosi commented on GitHub (Dec 12, 2025): Submitted
Author
Owner

@softworkz commented on GitHub (Dec 13, 2025):

Great, thanks!

(seems I accidentally closed this)

@softworkz commented on GitHub (Dec 13, 2025): Great, thanks! (seems I accidentally closed this)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/Electron.NET#1037