<Project Sdk="Microsoft.NET.Sdk">
  <PropertyGroup>
    <OutputType>Exe</OutputType>
    <TargetFramework>netcoreapp2.1</TargetFramework>
    <ApplicationIcon>raylib-cs.ico</ApplicationIcon>
    <Platforms>x64</Platforms>
    <StartupObject>Test.NetCore.Program</StartupObject>
  </PropertyGroup>
  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x86'">
    <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
  </PropertyGroup>
  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
    <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
    <Optimize>false</Optimize>
  </PropertyGroup>
  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
    <Optimize>false</Optimize>
    <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
    <Prefer32Bit>true</Prefer32Bit>
    <DefineConstants>DEBUG;TRACE</DefineConstants>
  </PropertyGroup>
  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
    <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
    <Optimize>false</Optimize>
  </PropertyGroup>
  <ItemGroup>
    <Compile Remove="raylib-cs\**" />
    <EmbeddedResource Remove="raylib-cs\**" />
    <None Remove="raylib-cs\**" />
  </ItemGroup>
  <ItemGroup>
    <Compile Include="..\Bindings\Easings.cs" Link="Easings.cs" />
    <Compile Include="..\Bindings\Physac.cs" Link="Physac.cs" />
    <Compile Include="..\Bindings\Raygui.cs" Link="Raygui.cs" />
    <Compile Include="..\Bindings\Raylib.cs" Link="Raylib.cs" />
    <Compile Include="..\Bindings\Raymath.cs" Link="Raymath.cs" />
  </ItemGroup>
  <Import Project="..\Examples\Examples.projitems" Label="Shared" />
  <Import Project="..\Examples\Examples.projitems" Label="Shared" />
  <Target Name="TestTarget" AfterTargets="Build">
    <Copy Condition=" '$(Platform)' == 'x86' " SourceFiles="..\Bindings\native\x86\raylib.dll" DestinationFolder="$(TargetDir)" />
    <Copy Condition=" '$(Platform)' == 'AnyCPU' " SourceFiles="..\Bindings\native\x86\raylib.dll" DestinationFolder="$(TargetDir)" />
    <Copy Condition=" '$(Platform)' == 'x64' " SourceFiles="..\Bindings\native\x64\raylib.dll" DestinationFolder="$(TargetDir)" />
  </Target>
</Project>
