<?xml version="1.0" encoding="utf-8"?>
<Project Sdk="Microsoft.NET.Sdk">

	<PropertyGroup>
		<OutputType>WinExe</OutputType>
		<TargetFramework>net7.0</TargetFramework>
		<BuiltInComInteropSupport>true</BuiltInComInteropSupport>
		<ApplicationIcon>libation.ico</ApplicationIcon>
		<AssemblyName>Libation</AssemblyName>
		<IsPublishable>true</IsPublishable>
		<PublishReadyToRun>true</PublishReadyToRun>
		<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
		<AppendRuntimeIdentifierToOutputPath>false</AppendRuntimeIdentifierToOutputPath>
		<StartupObject />
	</PropertyGroup>

	<PropertyGroup>
		<SatelliteResourceLanguages>en</SatelliteResourceLanguages>
	</PropertyGroup>

	<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
		<OutputPath>..\bin\Avalonia\Debug</OutputPath>
		<DebugType>embedded</DebugType>
	</PropertyGroup>

	<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
		<OutputPath>..\bin\Avalonia\Release</OutputPath>
		<DebugType>embedded</DebugType>
	</PropertyGroup>

	<ItemGroup>
		<AvaloniaResource Include="Assets\**" />
		<None Remove=".gitignore" />
		<None Remove="Assets\Arrows_left.png" />
		<None Remove="Assets\Arrows_right.png" />
		<None Remove="Assets\Asterisk.png" />
		<None Remove="Assets\cancel.png" />
		<None Remove="Assets\completed.png" />
		<None Remove="Assets\down.png" />
		<None Remove="Assets\download-arrow.png" />
		<None Remove="Assets\edit-tags-25x25.png" />
		<None Remove="Assets\edit-tags-50x50.png" />
		<None Remove="Assets\edit_25x25.png" />
		<None Remove="Assets\edit_64x64.png" />
		<None Remove="Assets\error.png" />
		<None Remove="Assets\errored.png" />
		<None Remove="Assets\Exclamation.png" />
		<None Remove="Assets\first.png" />
		<None Remove="Assets\glass-with-glow_16.png" />
		<None Remove="Assets\img-coverart-prod-unavailable_300x300.jpg" />
		<None Remove="Assets\img-coverart-prod-unavailable_500x500.jpg" />
		<None Remove="Assets\img-coverart-prod-unavailable_80x80.jpg" />
		<None Remove="Assets\import_16x16.png" />
		<None Remove="Assets\last.png" />
		<None Remove="Assets\libation.ico" />
		<None Remove="Assets\LibationStyles.xaml" />
		<None Remove="Assets\liberate_green.png" />
		<None Remove="Assets\liberate_green_pdf_no.png" />
		<None Remove="Assets\liberate_green_pdf_yes.png" />
		<None Remove="Assets\liberate_red.png" />
		<None Remove="Assets\liberate_red_pdf_no.png" />
		<None Remove="Assets\liberate_red_pdf_yes.png" />
		<None Remove="Assets\liberate_yellow.png" />
		<None Remove="Assets\liberate_yellow_pdf_no.png" />
		<None Remove="Assets\liberate_yellow_pdf_yes.png" />
		<None Remove="Assets\MBIcons\Asterisk.png" />
		<None Remove="Assets\MBIcons\error.png" />
		<None Remove="Assets\MBIcons\Exclamation.png" />
		<None Remove="Assets\MBIcons\Question.png" />
		<None Remove="Assets\minus.png" />
		<None Remove="Assets\plus.png" />
		<None Remove="Assets\Question.png" />
		<None Remove="Assets\queued.png" />
		<None Remove="Assets\up.png" />
	</ItemGroup>

	<ItemGroup>
		<Compile Update="Properties\Resources.Designer.cs">
			<DesignTime>True</DesignTime>
			<AutoGen>True</AutoGen>
			<DependentUpon>Resources.resx</DependentUpon>
		</Compile>
		<Compile Update="Views\MainWindow.*.cs">
			<DependentUpon>MainWindow.axaml</DependentUpon>
		</Compile>
	</ItemGroup>

	<ItemGroup>
		<EmbeddedResource Update="Properties\Resources.resx">
			<Generator>ResXFileCodeGenerator</Generator>
			<LastGenOutput>Resources.Designer.cs</LastGenOutput>
		</EmbeddedResource>
	</ItemGroup>

	<ItemGroup>
		<UpToDateCheckInput Remove="Controls\GroupBox.axaml" />
	</ItemGroup>

	<ItemGroup>
		<PackageReference Include="Avalonia" Version="11.0.0-preview4" />
		<PackageReference Include="Avalonia.Controls.DataGrid" Version="11.0.0-preview4" />
		<PackageReference Include="Avalonia.Desktop" Version="11.0.0-preview4" />
		<PackageReference Include="Avalonia.Diagnostics" Version="11.0.0-preview4 " />
		<PackageReference Include="Avalonia.ReactiveUI" Version="11.0.0-preview4" />
		<PackageReference Include="Avalonia.Themes.Fluent" Version="11.0.0-preview4" />
		<PackageReference Include="XamlNameReferenceGenerator" Version="1.6.1" />
	</ItemGroup>

	<ItemGroup>
	  <ProjectReference Include="..\LibationUiBase\LibationUiBase.csproj" />
	</ItemGroup>

	<Target Name="SpicNSpan" AfterTargets="Clean">
		<!-- Remove obj folder -->
		<RemoveDir Directories="$(BaseIntermediateOutputPath)" />
		<!-- Remove bin folder -->
		<RemoveDir Directories="$(BaseOutputPath)" />
	</Target>

</Project>