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

Does Webview2 requires Microsoft Edge installed on Client machine? #739

Closed
codestorycooked opened this issue Dec 14, 2020 · 8 comments
Closed
Assignees

Comments

@codestorycooked
Copy link

Hello, I have read the documentation of WebView2 and what I understand is this:

WebView2 Runtime contains Edge(Chromium) browser which is not user-accessible and is only accessed by App which uses WebView2 SDK(NuGet package)

So does it means that if User-machine had WebView2 Runtime installed my app will work?
Does User-Machine require separate Microsoft Edge browser installed?

User-Machine= Where my WebView2 app is running

@Symbai
Copy link

Symbai commented Dec 15, 2020

So does it means that if User-machine had WebView2 Runtime installed my app will work?

Yes unless your app requires a newer runtime version to be installed.

@jasonstephen15
Copy link
Contributor

Thanks for the question @codestorycooked. To build and test your WebView2 app, you will need to have both the WebView2 runtime and the SDK installed. When deploying your app, there are essentially 2 options: the evergreen runtime approach(recommended) or fixed versioning. More info here: https://docs.microsoft.com/en-us/microsoft-edge/webview2/concepts/distribution

If you choose to go with the evergreen runtime option and you'd want to use a stable WebView2 sdk, the client machine doesn't have to have a version of the Microsoft Edge Browser installed. However, if you are testing with a prerelease SDK, you will have to download a dev/canary version of the Browser.

Please let me know if there are any other questions, or if I can clarify anything.

@jasonstephen15 jasonstephen15 self-assigned this Dec 22, 2020
@codestorycooked
Copy link
Author

codestorycooked commented Dec 22, 2020

Thanks https://github.com/jasonstephen15 for your reply. So as I understand webview2 is packaged with runtime itself and doesn’t not depend on host machines browser at all.

Another question: Does it work with .net ore based apps?

@jasonstephen15
Copy link
Contributor

@codestorycooked - No, actually the evergreen runtime is separate from your app. On the other hand, the fixed distribution mode packages the same code as the runtime within your app (at the tradeoff of increased app size).

You are correct, if you are planning to go with evergreen, and are developing with a stable(not pre-release) WebView2, then your app will not depend on the host machines browser. BUT, if you are using a pre-release WebView2 Nuget SDK, then the host machine should have a dev/canary browser channel.

Yes, WebView2 works with .NET Core or Framework, here is a sample app: https://docs.microsoft.com/en-us/microsoft-edge/webview2/gettingstarted/wpf

@codestorycooked
Copy link
Author

Thank you for your help.

@jazzlake
Copy link

Is WebView2 part of the Chromium Edge browser. Meaning, if I install Chromium Edge is WebView2 installed? Even If I never installed WebView2?

@jschroedl
Copy link

No, it is currently entirely separate but MS has indicated that in the future, the WebView2 will be present in the OS. That way, apps using it will still function properly even if a company mandates a different browser.

@HughWarrington
Copy link

MS has indicated that in the future, the WebView2 will be present in the OS

I've been digging into this and not found any definitive answers from Microsoft. But today I noticed the following. If I publish my .NET application using ClickOnce with the following in the .pubxml file:

<BootstrapperPackage Include="Microsoft.NetCore.DesktopRuntime.6.0.x64">
  <Install>true</Install>
  <ProductName>.NET Desktop Runtime 6.0.26 (x64)</ProductName>
</BootstrapperPackage>

then after running setup.exe, during installation of the .NET 6 runtime, the latest version of "Microsoft Edge WebView 2 Runtime" is also installed onto my clean Windows 10 test environment!

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

6 participants