<Project Sdk="Microsoft.NET.Sdk">
    <PropertyGroup>
        <OutputType>Exe</OutputType>
        <TargetFramework>net5.0</TargetFramework>
        <PublishReadyToRun>false</PublishReadyToRun>
        <TieredCompilation>false</TieredCompilation>
        <PublishTrimmed>false</PublishTrimmed>
        <!-- <TrimMode>link</TrimMode> -->
        <_ExtraTrimmerArgs>$(_ExtraTrimmerArgs) --verbose</_ExtraTrimmerArgs>
    </PropertyGroup>
    <!-- <Target Name="EnsureAllAssembliesAreLinked" BeforeTargets="PrepareForILLink">
    <ItemGroup>
      <ManagedAssemblyToLink>
        <TrimMode>link</TrimMode>
      </ManagedAssemblyToLink>
      <TrimmerRootAssembly Include="$(TargetName)" />
    </ItemGroup>
  </Target> -->
    <PropertyGroup>
        <ApplicationManifest>app.manifest</ApplicationManifest>
        <ApplicationIcon>Icon.ico</ApplicationIcon>
    </PropertyGroup>
    <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
        <DefineConstants>DEBUG;TRACE</DefineConstants>
    </PropertyGroup>
    <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
        <DefineConstants>TRACE</DefineConstants>
    </PropertyGroup>
    <ItemGroup>
        <None Remove="Icon.ico" />
        <None Remove="Icon.bmp" />
   </ItemGroup>
    <ItemGroup>
        <EmbeddedResource Include="Icon.ico" />
        <EmbeddedResource Include="Icon.bmp" />
    </ItemGroup>
    <ItemGroup>
        <MonoGameContentReference Include="Content\Content.mgcb" />
    </ItemGroup>
    <!-- <ItemGroup>
    <TrimmerRootAssembly Include="Microsoft.Xna.Framework.Content.ContentTypeReader" Visible="false" />
  </ItemGroup> -->
    <ItemGroup>
        <PackageReference Include="AsyncAwaitBestPractices" Version="6.0.0" />
        <PackageReference Include="Microsoft.Extensions.Configuration.Json" Version="6.0.0-preview.7.21377.19" />
        <PackageReference Include="MonoGame.Extended" Version="3.8.0" />
        <PackageReference Include="MonoGame.Framework.DesktopGL" Version="3.8.0.1641" />
        <PackageReference Include="MonoGame.Content.Builder.Task" Version="3.8.0.1641" />
        <PackageReference Include="Microsoft.AspNetCore.SignalR.Client">
            <Version>6.0.0-preview.7.21378.6</Version>
        </PackageReference>
        <PackageReference Include="Myra" Version="1.3.2" />
        <PackageReference Include="Newtonsoft.Json" Version="13.0.1" />
        <PackageReference Include="polly" Version="7.2.2" />
        <PackageReference Include="polly.extensions.http" Version="3.0.0" />
        <PackageReference Include="Refit.HttpClientFactory" Version="6.0.94" />
        <PackageReference Include="Sentry" Version="3.9.2" />
        <PackageReference Include="TinyMessenger" Version="1.4.0-alpha3">
            <IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
            <PrivateAssets>all</PrivateAssets>
        </PackageReference>


    </ItemGroup>
    <ItemGroup>
        <Content Include="Content\**\*.xnb">
            <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
        </Content>
    </ItemGroup>
    
    <ItemGroup>
        <ProjectReference Include="..\Sledgemapper.Shared\Sledgemapper.Shared.csproj" />
    </ItemGroup>
    <!--<ItemGroup>
        <Compile Update="**\*.Custom.cs">
            <DependentUpon>$([System.String]::Copy(%(Filename)).Replace(".Custom",".cs"))</DependentUpon>
        </Compile>
        <Compile Update="**\*.Generated.cs">
            <DependentUpon>$([System.String]::Copy(%(Filename)).Replace(".Generated",".cs"))</DependentUpon>
        </Compile>
        <Content Update="**\*.UI.xmmp">
            <DependentUpon>$([System.String]::Copy(%(Filename)).Replace(".UI",".cs"))</DependentUpon>
        </Content>
    </ItemGroup>-->
    
</Project>