Greenfield skeleton for a parser desktop app. The domain is deliberately a placeholder — IParser<TIn,TOut> plus two sample parsers — so the shell is runnable and verifiable end to end before real logic lands. Layers run one way: Core (no Avalonia, no IO) <- Infrastructure <- UI <- Desktop. UI is a class library rather than the exe so headless tests build real views without dragging in Program.cs, Serilog or the container. Adaptive layout is built from what Avalonia actually offers, since it has no AdaptiveTrigger or media queries: ResponsiveLayout observes Visual.Bounds and projects a breakpoint onto both an attached property and :compact/:medium/ :expanded pseudoclasses, with 24px hysteresis so dragging a window edge cannot make the layout flap. Pane state lives in the view model because a style setter loses to a local value permanently; styles own only the visual variance. Stack notes worth remembering: Avalonia.ReactiveUI is deprecated in favour of ReactiveUI.Avalonia, and ReactiveUI 24 runs on the Primitives engine (RxVoid, ISequencer, Signal<T>) and no longer self-initialises. Avalonia.Headless.XUnit 12.x requires xUnit v3. InvariantGlobalization must stay false or Semi.Avalonia throws in its static constructor. 102 tests across three projects, including headless guards for the two failures that are otherwise completely silent: a stylesheet whose selectors match nothing, and a light palette too low-contrast for cards to read. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
47 lines
2.0 KiB
XML
47 lines
2.0 KiB
XML
<Project>
|
|
<PropertyGroup Label="Framework">
|
|
<TargetFramework>net10.0</TargetFramework>
|
|
<LangVersion>latest</LangVersion>
|
|
<Nullable>enable</Nullable>
|
|
<ImplicitUsings>enable</ImplicitUsings>
|
|
<!-- Must stay false: Semi.Avalonia builds CultureInfo instances for its locale dictionaries
|
|
in a static constructor, which throws outright under globalization-invariant mode.
|
|
A desktop app also wants real culture-aware number and date formatting. -->
|
|
<InvariantGlobalization>false</InvariantGlobalization>
|
|
</PropertyGroup>
|
|
|
|
<PropertyGroup Label="Quality">
|
|
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
|
|
<!-- NuGet audit advisories must not break an otherwise-green build:
|
|
a CVE published overnight would fail CI on code nobody touched. -->
|
|
<WarningsNotAsErrors>NU1901;NU1902;NU1903;NU1904</WarningsNotAsErrors>
|
|
<EnforceCodeStyleInBuild>true</EnforceCodeStyleInBuild>
|
|
<AnalysisLevel>latest-Recommended</AnalysisLevel>
|
|
<EnableNETAnalyzers>true</EnableNETAnalyzers>
|
|
<GenerateDocumentationFile>true</GenerateDocumentationFile>
|
|
<NoWarn>$(NoWarn);CS1591</NoWarn>
|
|
</PropertyGroup>
|
|
|
|
<PropertyGroup Label="Build">
|
|
<Deterministic>true</Deterministic>
|
|
<ContinuousIntegrationBuild Condition="'$(CI)' == 'true'">true</ContinuousIntegrationBuild>
|
|
<AccelerateBuildsInVisualStudio>true</AccelerateBuildsInVisualStudio>
|
|
<RestorePackagesWithLockFile>false</RestorePackagesWithLockFile>
|
|
<NuGetAudit>true</NuGetAudit>
|
|
<NuGetAuditMode>all</NuGetAuditMode>
|
|
</PropertyGroup>
|
|
|
|
<PropertyGroup Label="Metadata">
|
|
<Product>AvParser</Product>
|
|
<Company>mrleo1nid</Company>
|
|
<Authors>mrleo1nid</Authors>
|
|
<Version>0.1.0</Version>
|
|
<RepositoryUrl>https://gitea.hsrv.site/mrleo1nid/av-parser</RepositoryUrl>
|
|
</PropertyGroup>
|
|
|
|
<PropertyGroup Label="Avalonia">
|
|
<!-- Default in Avalonia 12, set explicitly so the intent survives a downgrade. -->
|
|
<AvaloniaUseCompiledBindingsByDefault>true</AvaloniaUseCompiledBindingsByDefault>
|
|
</PropertyGroup>
|
|
</Project>
|