M6 Windows: composizione condivisa Febe.App per Server e Desktop; Febe per Windows (WPF) con l'interfaccia in WebView2, area di notifica, istanza unica, «Browser di Febe» su WebView2 con CDP filtrato (WebView2CdpSession) e ripieghi di S2 (composizione, Edge), guscio nativo, avvisi, spostamento verificato della cartella dei dati, icona del marchio; un solo Febe.exe, installatore NSIS e zip portabile; guida docs/windows.md e prove dal vivo S1–S3

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

Claude-Session: https://claude.ai/code/session_01Mzbb6zeFTjT6Rp8b92AVkA
This commit is contained in:
Claude committed 2026-10-13 21:50:25 +00:00
1 parent dc4d1fc738
commit b443adfa8b
73 files changed
+7914 -699

No files matched your search

+9 -1
View File
@@ -1,4 +1,5 @@
using System.Collections;
using System.Diagnostics.CodeAnalysis;
using System.Reflection;
using Microsoft.Extensions.FileProviders;
using Microsoft.Extensions.Primitives;
@@ -27,6 +28,7 @@ public sealed class EmbeddedWwwroot : IFileProvider
{
}
[UnconditionalSuppressMessage("SingleFile", "IL3000:Avoid accessing Assembly file path when publishing as a single file", Justification = "In a single file the location is empty and the executable's own time is used instead.")]
public EmbeddedWwwroot(Assembly assembly)
{
_assembly = assembly ?? throw new ArgumentNullException(nameof(assembly));
@@ -48,8 +50,14 @@ public sealed class EmbeddedWwwroot : IFileProvider
}
}
// Embedded files change only with the assembly: its time is a good Last-Modified (and ETag) for all of them.
// Embedded files change only with the assembly: its time is a good Last-Modified (and ETag) for all of them. In a
// single-file executable (Windows) the assembly has no file of its own: the executable's time stands for it.
var location = assembly.Location;
if (string.IsNullOrEmpty(location))
{
location = Environment.ProcessPath ?? string.Empty;
}
_lastModified = !string.IsNullOrEmpty(location) && File.Exists(location)
? new DateTimeOffset(File.GetLastWriteTimeUtc(location), TimeSpan.Zero)
: DateTimeOffset.UtcNow;