RynthCore/tools/WebPanelTests/WebPanelTests.csproj
Daniel Wallace e428f65c4d Web panel: IsAllowed fails closed on invalid IDN hosts
Uri.IdnHost throws UriFormatException for hosts like c<U+2100>; catch and reject. Test project now runs with ICU so the case is covered.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-08 13:07:33 -08:00

25 lines
1.1 KiB
XML

<Project Sdk="Microsoft.NET.Sdk">
<!--
Offline checks for the web panel's pure policies (URL allowlist and redaction, window
visibility and layout, profile folder): src\RynthCore.Engine\WebPanel\*.cs, compiled in.
No AC, no Win32, no WebView2, no files.
Run: dotnet run -c Release (exit 0 = pass, 1 = fail)
-->
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net10.0</TargetFramework>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
<!-- ICU on: invariant mode skips IDN validation and hides Uri.IdnHost throwing. -->
<InvariantGlobalization>false</InvariantGlobalization>
<RootNamespace>WebPanelTests</RootNamespace>
</PropertyGroup>
<ItemGroup>
<Compile Include="..\..\src\RynthCore.Engine\WebPanel\WebPanelUrlPolicy.cs" Link="Engine\WebPanelUrlPolicy.cs" />
<Compile Include="..\..\src\RynthCore.Engine\WebPanel\WebPanelWindowPolicy.cs" Link="Engine\WebPanelWindowPolicy.cs" />
<Compile Include="..\..\src\RynthCore.Engine\WebPanel\WebPanelProfile.cs" Link="Engine\WebPanelProfile.cs" />
</ItemGroup>
</Project>