Prove per Windows con WebView2 vero, e la prova che riproduce l'avvio mancato

Nuovo progetto tests/Febe.Tests.Windows (net10.0-windows, WPF, solo MSTest e riferimenti ai
progetti): un thread STA con un Dispatcher di WPF vero, come il thread dell'interfaccia di
Febe.exe, e il browser di Febe costruito come lo costruisce la composizione e avviato da un
thread del pool, come fa FebeApp. Si compila anche da Linux (EnableWindowsTargeting, come
Febe.Desktop) perché la CI compila tutta la soluzione, ma gira solo su Windows; dove manca il
runtime WebView2 le prove risultano inconcludenti.

La prima prova riproduce il registro di Alberto del 14 e del 19 ottobre: «WebView2 non parte
(InvalidOperationException: CoreWebView2Environment members can only be accessed from the UI
thread.)» a ogni tentativo. Con il codice di questo commit fallisce così; la correzione è nel
commit seguente.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Alby96andClaude Opus 5.5 committed 2026-10-20 10:09:30 +02:00
1 parent edade61b72
commit a25f60970d
10 files changed
+375

No files matched your search

+1
View File
@@ -11,6 +11,7 @@
</Folder>
<Folder Name="/tests/">
<Project Path="tests/Febe.Tests/Febe.Tests.csproj" />
<Project Path="tests/Febe.Tests.Windows/Febe.Tests.Windows.csproj" />
</Folder>
<Folder Name="/tools/">
<Project Path="tools/Febe.Sonda/Febe.Sonda.csproj" />