MicrosoftEdge / WebView2Samples

Microsoft Edge WebView2 samples
830 stars 460 forks source link

.Net Framework 4.6 in the samples? #187

Closed Terrence77 closed 1 year ago

Terrence77 commented 1 year ago

I downloaded the samples and attempted to run the WindowsFormsBrowser and could not because the project was targeting

<TargetFrameworks>net462</TargetFrameworks>

Why would MS be posting samples of a brand new WebView2 in a project that is targeting code from a distant past.

Where are the samples using .NetCore?

Thank you.

Terrence77 commented 1 year ago

Is this repository being monitored by MS?

champnic commented 1 year ago

Hey @Terrence77 - Yes, though not as closely as the WebView2Feedback repo.

To answer your question above - our default is to support as far back as we can, as we have lots of different customers using different frameworks, many of who are migrating old apps. You should be able to retarget the project, or if you want to create a new one targeting .NET Core or 5/6/7, the WebView2 code should be the same.

Terrence77 commented 1 year ago

@champnic Thank you for that explanation.