If webview2 is not installed, then Maui falls back to the old webview.
The MAUI application's UI does not render properly on a machine that does not have Visual Studio installed.
Viral Rathod
0
Reputation points
I am encountering an issue where the UI of my .NET MAUI application does not render properly on a machine that does not have Visual Studio installed. Here are the specific details:
System Information:
- System 1 (Windows 10):
- Processor: Intel(R) Core(TM) i3-5005U CPU @ 2.00 GHz
- RAM: 12 GB
- OS Version: Windows 10 Pro, 22H2 (OS Build 19045.5131)
- System 2 (Windows 11):
- Processor: Intel(R) Core(TM) i5-4300U CPU @ 1.90 GHz
- RAM: 12 GB
- OS Version: Windows 11 Pro, 21H2 (OS Build 22000.2538)
Issue Details:
- The application works correctly on machines with Visual Studio installed.
- On machines without Visual Studio, the WebView fails to render the UI correctly or doesn’t load completely.
Questions:
- Are there specific dependencies or runtime components related to WebView in .NET MAUI that Visual Studio typically provides?
- How can I ensure my .NET MAUI application (especially the WebView) is fully self-contained and functions properly on machines without Visual Studio?
- Could the hardware limitations of my PCs (e.g., 4th generation CPU, GPU, or memory) contribute to rendering issues with the WebView in .NET MAUI applications?
Additional Notes:
- I published the .NET MAUI app to an MSIX file and installed it on a Windows 10 Pro, 22H2 OS Build 19045 system without Visual Studio, and it works as expected.
- However, on other systems without Visual Studio, the WebView UI issue persists.