Open dcuccia opened 16 hours ago
A C++ console app w/ Nuget package Microsoft.Web.WebView2 (version 1.0.2903.40)
yields the following:
WebView2 Runtime version: 130.0.2849.80
Here's the code:
#include <iostream>
#include <windows.h>
#include <wrl.h>
#include "WebView2.h"
int main()
{
// Initialize COM library
HRESULT hr = CoInitializeEx(nullptr, COINIT_APARTMENTTHREADED);
if (FAILED(hr))
{
std::cerr << "Failed to initialize COM library. HRESULT: " << hr << std::endl;
return 1;
}
// Get the WebView2 Runtime version
LPWSTR versionInfo = nullptr;
hr = GetAvailableCoreWebView2BrowserVersionString(nullptr, &versionInfo);
if (SUCCEEDED(hr) && versionInfo != nullptr)
{
std::wcout << L"WebView2 Runtime version: " << versionInfo << std::endl;
CoTaskMemFree(versionInfo);
}
else
{
std::cerr << "WebView2 Runtime not found or failed to retrieve version. HRESULT: " << hr << std::endl;
}
// Uninitialize COM library
CoUninitialize();
return 0;
}
Description
I'm unable to properly render the Blazor Hybrid template for Windows Desktop on my new ARM64 machine (Snapdragon X Elite Thinkpad T14s Gen 6):
The web version runs fine:
...and it works fine on my Intel x64 desktop:
I've installed the GA .NET 9 SDK and run
dotnet workload update
(VS 2022, VS 2022 Preview, and VS code + MAUI extension all up to date). I haven't (yet) experimented with any updating/replacing the built-in WebView2.Here's a dump of info:
VS 2022 Info:
Steps to Reproduce
Link to public reproduction project repository
No response
Version with bug
9.0.0 GA
Is this a regression from previous behavior?
Not sure, did not test other versions
Last version that worked well
Unknown/Other
Affected platforms
Windows
Affected platform versions
net9.0-windows10.0.19041.0
Did you find any workaround?
No
Relevant log output