MicrosoftEdge / WebView2Feedback

Feedback and discussions about Microsoft Edge WebView2
https://aka.ms/webview2
442 stars 53 forks source link

Distribute Fixed Version runtime in Nuget package #1661

Open ghost opened 3 years ago

ghost commented 3 years ago

image

The CefSharp provided developer friendly Runtime bundled into NuGet package. Developer do not worried about how to let user install runtime. The Publish build will auto package the right Runtime into the output directory.

Developer only need to upgrade the version number, and do Nuget Package upgrade, it will finish the other dirty work for us.

image

Very easy and better develop experience.

AB#35520587

RickStrahl commented 3 years ago

I don't think that's so great because it requires you to ship the full runtime. With WebView you get the choice if you want to install the runtime or if you want to allow users to already have it installed or even install it on the fly.

You can still bundle the runtime with your application easily enough by packaging the runtime with your installer, but if you want to avoid the package overhead, you can ship just the runtime installer and let the runtime install as needed which is an excellent option to avoid the huge runtime hit in a product download.

While it's more work to figure out exactly what you need, the choices are a big benefit for developers as you can choose whether to optimize convenience or package size.

Personally I use install time, or runtime on demand installation using the small (2mb) installer that I ship with my app and that's used both by the installer and the application.

Wrote up some of the options here along with what I do in my apps both via installer (for full installations) or via runtime installation for portable installs.

WebView2 Runtime Installation Options

ghost commented 3 years ago

@RickStrahl For our App, We need carefull test specified Runtime version. and won't upgrade Runtime always. If the runtime not pass our strict test. we won't release it . So we currently using CefSharp ,pin on one stable version we tested.

ghost commented 3 years ago

The feature request describe the third way to obtain WebView2. It just what CefSharp provied us . image

Am i clear explain what's the reason? and what we want?

champnic commented 3 years ago

Thanks for the feature request @cnmade! I had the same reaction as @RickStrahl at first, but I realize now you are specifically asking to make using and installing the Fixed Version easier through a Nuget package. I've added this scenario to our backlog. Thanks!

RickStrahl commented 3 years ago

@champnic Glad you caught that cause I didn't catch that at all from the original message.

Agree with @cnmade though: It would be nice to have an easy way to add a runtime to the application instead of the non-transparent way it is now with the download and try to figure out where to put it exactly. Not rocket science but it is a few extra steps that would be better handled by a NuGet package...