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

  <PropertyGroup>
    <OutputType>WinExe</OutputType>
    <TargetFramework>net6.0-windows</TargetFramework>
    <Platforms>x64</Platforms>
    <RunPostBuildEvent>Always</RunPostBuildEvent>
    <NoWin32Manifest>true</NoWin32Manifest>
  </PropertyGroup>

  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
	  <OtherFlags>--standalone</OtherFlags>
  </PropertyGroup>

  <ItemGroup>
    <Content Include="FractalDimensionLogo.ico" />
    <None Include="frag.glsl" />
    <None Include="vert.glsl" />
    <Compile Include="CubeFillingCurve.fs" />
    <Compile Include="EzSound.fs" />
    <Compile Include="EzShader.fs" />
    <Compile Include="Program.fs" />
  </ItemGroup>

  <ItemGroup />

  <ItemGroup>
    <PackageReference Include="NAudio" Version="2.0.0" />
    <PackageReference Include="OpenTK" Version="5.0.0-pre.5" />
    <PackageReference Include="System.Drawing.Common" Version="6.0.0-preview.5.21301.5" />
  </ItemGroup>

  <ItemGroup>
    <PackageReference Update="FSharp.Core" Version="5.0.1" />
  </ItemGroup>

  <Target Name="PostBuild" AfterTargets="PostBuildEvent">
    <Exec Command="robocopy &quot;$(ProjectDir)\.&quot; &quot;$(TargetDir)\.&quot; vert.glsl frag.glsl FractalDimensionLogo.ico&#xD;&#xA;if %25errorlevel%25 leq 1 exit 0 else exit %25errorlevel%25" />
  </Target>

</Project>
