MicrosoftEdge / MicrosoftEdge/WebView2Feedback

MAUI blazor setting WEBVIEW2_BROWSER_EXECUTABLE_FOLDER and web view gets stuck

Open
#3,073 1 comment 0 reactions 1 assignee View on GitHub

@LiangTheDev is already working on this.

Since Dec 16, 2022.

bug
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.

image

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.