MicrosoftEdge / MicrosoftEdge/WebView2Feedback
MAUI blazor setting WEBVIEW2_BROWSER_EXECUTABLE_FOLDER and web view gets stuck
@LiangTheDev is already working on this.
Since Dec 16, 2022.
- Dominant language
- PowerShell
- Stars
- 526
- Forks
- 67
- PR merge metrics
- No merged PRs in 30d
Description
I'm currently working on a maui blazor app that will run on a computer that doesn't have a browser installed.
So i tried to add WebView2.Runtime.X64 nuget package to my project and setting the environment variable WEBVIEW2_BROWSER_EXECUTABLE_FOLDER to "WebView2" directory.
var directory = Directory.GetCurrentDirectory();
string fixedPath = Path.Combine(directory, "WebView2");
Environment.SetEnvironmentVariable("WEBVIEW2_BROWSER_EXECUTABLE_FOLDER", fixedPath);
But when I run the app I just get a blank page.

Any pointers on what I did wrong would be appreciated.
Thanks in advance.
Version
SDK: NET6.0
Runtime: WebView2.Runtime.X64 V: 108.0.1462.44
Framework: MAUI Blazor
OS: Win10
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.