I have only limited experience developing in Windows and this is my first C# app anywhere, so I am likely missing something fundamental. I have 91.0.864.59 installed so that should work. Looking at the release notes for SDK 1.0.864.35 for runtime support, I see: "Minimum Runtime version to load: 86.0.616.0 or newer". The exception is clearly referencing the SDK and not the runtime. The system cannot find the file specified. It ignores the runtime entirely and when the code invokes the form containing WebView2, I see the following exception: Could not load file or assembly ', Version=1.0.864.35, Culture=neutral, PublicKeyToken=2a8ab48044d2601e' or one of its dependencies. With all this, the installed app can no longer run the WebView2 component. I do see the 'Microsoft Edge WebView2 Runtime' version 91.0.864.59 installed in the Windows 'Apps & features' panel. The app installer runs the MicrosoftEdgeWebview2Setup.exe bootstrap installer which is installing the runtime. My end users won't have any of that installed, though, so I am installing the WebView2 runtime via a WiX installer Custom Action. This works like a charm when run directly from Visual Studio 17 as well as directly clicking on the executable in the Release or Debug folders. It uses the latest (as of 6/28/21) release version of the SDK, pulled automatically by Nuget: NET 4.6.1 that has a form containing an element of type .WebView2.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |