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

Release mode does not allow pop up DevTools #146

Open
vitash opened this issue Jan 3, 2025 · 1 comment
Open

Release mode does not allow pop up DevTools #146

vitash opened this issue Jan 3, 2025 · 1 comment

Comments

@vitash
Copy link

vitash commented Jan 3, 2025

image

Pressing Ctrl+Shift+I in the interface will pop up DevTools, Maui does not allow DevTools to pop up in release mode, and expects the release program not to pop up either.


The Blazor experience is good

@MattParkerDev
Copy link

I'm not sure I properly understand your question, are you expecting the dev tools to not be accessible when the app is run in Release mode?

If this is what you're wanting, you can disable the dev tools in Release mode like so:

		var app = appBuilder.Build();

		app.MainWindow
			.SetSize(1400, 800)
#if RELEASE
			.SetDevToolsEnabled(false)
#endif
			.SetLogVerbosity(0)
			.SetTitle("ExampleApp");

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants