<Project Sdk="Microsoft.NET.Sdk">

  <PropertyGroup>
    <!-- WinExe: unter Windows kein Konsolenfenster hinter der GUI. Unter Linux
         ist WinExe gleichbedeutend mit Exe. Fuer den Headless-Modus wird unter
         Windows die Elternkonsole angehaengt (siehe ConsoleAttach). -->
    <OutputType>WinExe</OutputType>
    <RootNamespace>Predictalytics.Shell</RootNamespace>
    <AvaloniaUseCompiledBindingsByDefault>true</AvaloniaUseCompiledBindingsByDefault>
    <BuiltInComInteropSupport>true</BuiltInComInteropSupport>
    <ApplicationManifest>app.manifest</ApplicationManifest>
  </PropertyGroup>

  <ItemGroup>
    <PackageReference Include="Avalonia" />
    <PackageReference Include="Avalonia.Desktop" />
    <PackageReference Include="Avalonia.Themes.Fluent" />
    <PackageReference Include="Avalonia.Fonts.Inter" />
    <PackageReference Include="CommunityToolkit.Mvvm" />
    <PackageReference Include="Serilog" />
  </ItemGroup>

  <ItemGroup>
    <!-- Api, Worker, Infrastructure und Deploymentcenter.Client kommen transitiv ueber Hosting. -->
    <ProjectReference Include="..\Predictalytics.Hosting\Predictalytics.Hosting.csproj" />
  </ItemGroup>

  <ItemGroup>
    <!-- Die WebUI wird neben die Programmdatei kopiert, damit PredictalyticsHost sie
         ueber AppContext.BaseDirectory findet. -->
    <Content Include="..\Predictalytics.Api\wwwroot\**"
             Link="wwwroot\%(RecursiveDir)%(Filename)%(Extension)"
             CopyToOutputDirectory="PreserveNewest"
             CopyToPublishDirectory="PreserveNewest" />
  </ItemGroup>

</Project>
