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

  <PropertyGroup>
    <OutputType>Exe</OutputType>
    <TargetFramework>net8.0</TargetFramework>
    <StartupObject>CumulusMX.Program</StartupObject>
    <ApplicationIcon>icon.ico</ApplicationIcon>
    <NoWin32Manifest>true</NoWin32Manifest>
    <AssemblyVersion>$(PackageVersion)</AssemblyVersion>
    <FileVersion>$(PackageVersion)</FileVersion>
    <PackageIcon>icon.ico</PackageIcon>
    <PackageIconUrl />
    <UserSecretsId>06d97cbf-708b-41a7-b6fa-82bb67d5da0c</UserSecretsId>
    <IsPublishable>False</IsPublishable>
    <ProduceReferenceAssembly>False</ProduceReferenceAssembly>
    <Nullable>annotations</Nullable>
    <Platforms>AnyCPU;x86</Platforms>
  </PropertyGroup>

  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
    <OutputPath></OutputPath>
    <PlatformTarget>AnyCPU</PlatformTarget>
    <DefineConstants>TRACE;DEBUG;USE_SQLITEPCL_RAW</DefineConstants>
    <NoWarn>1701;1702</NoWarn>
    <WarningsAsErrors>NU1605</WarningsAsErrors>
    <WarningLevel>4</WarningLevel>
  </PropertyGroup>

  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x86'">
    <OutputPath />
    <PlatformTarget>x86</PlatformTarget>
    <DefineConstants>TRACE;DEBUG;USE_SQLITEPCL_RAW</DefineConstants>
    <NoWarn>1701;1702</NoWarn>
    <WarningsAsErrors>NU1605</WarningsAsErrors>
    <WarningLevel>4</WarningLevel>
  </PropertyGroup>

  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
    <OutputPath></OutputPath>
    <PlatformTarget>AnyCPU</PlatformTarget>
    <DebugType>none</DebugType>
    <DebugSymbols>false</DebugSymbols>
    <DefineConstants>TRACE;USE_SQLITEPCL_RAW</DefineConstants>
    <NoWarn>1701;1702</NoWarn>
    <WarningsAsErrors>NU1605</WarningsAsErrors>
    <WarningLevel>4</WarningLevel>
  </PropertyGroup>

  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x86'">
    <OutputPath />
    <PlatformTarget>x86</PlatformTarget>
    <DebugType>none</DebugType>
    <DebugSymbols>false</DebugSymbols>
    <DefineConstants>TRACE;USE_SQLITEPCL_RAW</DefineConstants>
    <NoWarn>1701;1702</NoWarn>
    <WarningsAsErrors>NU1605</WarningsAsErrors>
    <WarningLevel>4</WarningLevel>
  </PropertyGroup>

  <PropertyGroup>
    <Version>4.2.1.4043</Version>
    <Copyright>Copyright ©  2015-$([System.DateTime]::Now.ToString('yyyy')) Cumulus MX</Copyright>
    <PackageId>$(AssemblyName)</PackageId>
  </PropertyGroup>

  <ItemGroup>
    <Compile Remove="MxFtpClient.cs" />
  </ItemGroup>

  <ItemGroup>
    <None Include="App.config">
      <SubType>Designer</SubType>
    </None>
    <None Include="Properties\app.manifest" />
    <None Include="Properties\Settings.settings">
      <Generator>SettingsSingleFileGenerator</Generator>
      <LastGenOutput>Settings.Designer.cs</LastGenOutput>
    </None>
  </ItemGroup>

  <ItemGroup>
    <WCFMetadata Include="Connected Services\" />
  </ItemGroup>

  <ItemGroup>
    <Content Include="icon.ico" />
  </ItemGroup>

  <ItemGroup>
    <PackageReference Include="BouncyCastle.Cryptography" Version="2.4.0" />
    <PackageReference Include="FluentFTP.Logging" Version="1.0.0" />
    <PackageReference Include="Microsoft.Win32.SystemEvents" Version="8.0.0" />
    <PackageReference Include="NReco.Logging.File" Version="1.2.1" />
    <PackageReference Include="SixLabors.ImageSharp" Version="3.1.5" />
    <PackageReference Include="SQLitePCLRaw.bundle_green" Version="2.1.10" />
    <PackageReference Include="System.CodeDom" Version="8.0.0" />
    <PackageReference Include="System.Diagnostics.PerformanceCounter" Version="8.0.1" />
    <PackageReference Include="EmbedIO" Version="3.5.2" />
    <PackageReference Include="FluentFTP" Version="51.1.0" />
    <PackageReference Include="HidSharp" Version="2.1.0" />
    <PackageReference Include="MailKit" Version="4.8.0" />
    <PackageReference Include="MQTTnet" Version="4.3.7.1207" />
    <PackageReference Include="MySqlConnector" Version="2.3.7" />
    <PackageReference Include="ServiceStack.Text" Version="8.4.0" />
    <PackageReference Include="SSH.NET" Version="2024.1.0" />
    <PackageReference Include="System.IO.Ports" Version="8.0.0" />
    <PackageReference Include="System.ServiceProcess.ServiceController" Version="8.0.1" />
  </ItemGroup>

  <ItemGroup>
    <Reference Include="Tmds.MDns">
      <HintPath>lib\Tmds.MDns.dll</HintPath>
    </Reference>
  </ItemGroup>

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

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

  <Target Name="PostBuild" AfterTargets="PostBuildEvent">
    <Exec Command="echo.&#xD;&#xA;echo Starting post-build tasks&#xD;&#xA;echo Copy Updates.txt&#xD;&#xA;xcopy &quot;$(ProjectDir)..\CHANGELOG.md&quot; &quot;$(TargetDir)\CHANGELOG.md&quot; /D /-I /Q /Y&#xD;&#xA;xcopy &quot;$(ProjectDir)..\CHANGELOG.md&quot; &quot;$(SolutionDir)..\CumulusMX-Dist.Net\CumulusMX\CHANGELOG.md&quot; /D /-I /Q /Y&#xD;&#xA;echo.&#xD;&#xA;if $(Platform)==x86 (&#xD;&#xA;  echo copy MX exe - x86&#xD;&#xA;  xcopy &quot;$(OutputPath)\CumulusMX.exe&quot; &quot;$(SolutionDir)..\CumulusMX-Dist.Net\CumulusMX\CumulusMX32.exe&quot; /D /-I /Y&#xD;&#xA;)&#xD;&#xA;if $(Platform)==AnyCPU (&#xD;&#xA;  echo copy MX exe - AnyCPU&#xD;&#xA;  xcopy &quot;$(OutputPath)\CumulusMX.exe&quot; &quot;$(SolutionDir)..\CumulusMX-Dist.Net\CumulusMX&quot; /D /-I /Y&#xD;&#xA;  echo.&#xD;&#xA;  echo copy MX config&#xD;&#xA;  xcopy &quot;$(TargetPath).config&quot; &quot;$(SolutionDir)..\CumulusMX-Dist.Net\CumulusMX&quot; /D /-I /Y&#xD;&#xA;  xcopy &quot;$(OutputPath)\CumulusMX.runtimeconfig.json&quot; &quot;$(SolutionDir)..\CumulusMX-Dist.Net\CumulusMX&quot; /D /-I /Y&#xD;&#xA;  xcopy &quot;$(OutputPath)\CumulusMX.deps.json&quot; &quot;$(SolutionDir)..\CumulusMX-Dist.Net\CumulusMX&quot; /D /-I /Y&#xD;&#xA;  echo.&#xD;&#xA;  echo copy dll's&#xD;&#xA;  xcopy &quot;$(OutputPath)\*.dll&quot; &quot;$(SolutionDir)..\CumulusMX-Dist.Net\CumulusMX&quot; /D /-I /Y&#xD;&#xA;  echo.&#xD;&#xA;  echo copy runtimes&#xD;&#xA;  xcopy &quot;$(OutputPath)\runtimes&quot; &quot;$(SolutionDir)..\CumulusMX-Dist.Net\CumulusMX\runtimes&quot; /S /D /I /Y&#xD;&#xA;  echo.&#xD;&#xA;  echo recreate hash file&#xD;&#xA;  cd &quot;$(SolutionDir)..\CumulusMX-Dist.Net&quot;&#xD;&#xA;  powershell -NoProfile -ExecutionPolicy Bypass -Command .\_CreateDistHashFile.ps1&#xD;&#xA;)" />
  </Target>

</Project>